This commit is contained in:
deathbybandaid 2024-02-22 08:40:11 -05:00
parent 2665cca418
commit 29dc0e1aa2
4 changed files with 5 additions and 6 deletions

View File

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

View File

@ -18,7 +18,7 @@ update_from_api() {
source ./plex-token.sh
echo "Cleaning Bundles"
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
curl -X GET $plex_api_url
curl -X PUT $plex_api_url
}
case "$2" in

View File

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

View File

@ -28,13 +28,13 @@ update_from_api() {
echo "Emptying Trash for key: ${library_number}"
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
curl -X GET $plex_api_url
curl -X PUT $plex_api_url
done
echo "Cleaning Bundles"
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
curl -X GET $plex_api_url
curl -X PUT $plex_api_url
}