From 29dc0e1aa28b5535625e3818086377ca51419fd9 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 08:40:11 -0500 Subject: [PATCH] test --- plex-analyze.sh | 2 +- plex-cleanbundles.sh | 2 +- plex-emptytrash.sh | 3 +-- plex-freshen.sh | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plex-analyze.sh b/plex-analyze.sh index cba7feb..c63b1fd 100644 --- a/plex-analyze.sh +++ b/plex-analyze.sh @@ -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 diff --git a/plex-cleanbundles.sh b/plex-cleanbundles.sh index da429e2..9e85d3d 100644 --- a/plex-cleanbundles.sh +++ b/plex-cleanbundles.sh @@ -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 diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index 1a60f34..fa61f8b 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -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 diff --git a/plex-freshen.sh b/plex-freshen.sh index c9092be..7653903 100644 --- a/plex-freshen.sh +++ b/plex-freshen.sh @@ -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 }