This commit is contained in:
deathbybandaid 2024-02-22 07:55:50 -05:00
parent c0a4d3e208
commit ed6187f6bb
4 changed files with 5 additions and 6 deletions

View File

@ -23,7 +23,7 @@ update_from_api() {
do
echo "Analyzing for key: ${library_number}"
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
done

View File

@ -23,7 +23,7 @@ update_from_api() {
do
echo "Emptying Trash for key: ${library_number}"
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
done

View File

@ -23,15 +23,15 @@ update_from_api() {
do
echo "Running Library Update and metadata refresh for key: ${library_number}"
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
echo "Emptying Trash for key: ${library_number}"
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
done
echo "Cleaning Bundles"
curl -X PUT http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X GET http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}
}

View File

@ -24,7 +24,6 @@ update_from_api() {
do
echo "Running Library Update and metadata refresh for key: ${library_number}"
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
#curl -X PUT "http://127.0.0.1:32400/library/sections/${library_number}/refresh?force=1&X-Plex-Token=${LOCAL_PLEX_TOKEN}"
done
}