From ed6187f6bb77e295ac65c147f37c98e9aac925b2 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 07:55:50 -0500 Subject: [PATCH] test --- plex-analyze.sh | 2 +- plex-emptytrash.sh | 2 +- plex-freshen.sh | 6 +++--- plex-refreshmetadata.sh | 1 - 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plex-analyze.sh b/plex-analyze.sh index 64ac431..78d9cc3 100644 --- a/plex-analyze.sh +++ b/plex-analyze.sh @@ -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 diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index 6159a5b..dfb5598 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -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 diff --git a/plex-freshen.sh b/plex-freshen.sh index cb5a859..979a701 100644 --- a/plex-freshen.sh +++ b/plex-freshen.sh @@ -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} } diff --git a/plex-refreshmetadata.sh b/plex-refreshmetadata.sh index 2c18af6..04f6231 100644 --- a/plex-refreshmetadata.sh +++ b/plex-refreshmetadata.sh @@ -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 }