From 6923c5731e19ff29dbce311ab1ef8cf23576db1b Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 08:27:08 -0500 Subject: [PATCH] test --- plex-emptytrash.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index fb18115..ef5f3cd 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -19,15 +19,12 @@ update_from_api() { source ./plex-library-ids.sh # run a loop against each library - i=0 for library_id in $LOCAL_LIBRARIES_IDS do - library_title=$LOCAL_LIBRARIES_TITLES[$i] - echo "Emptying Trash for ${library_title} ${library_id}" + echo "Emptying Trash for ${library_id}" curl -X GET http://127.0.0.1:32400/library/sections/${library_id}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN} - i=$(( $i + 1)); done }