This commit is contained in:
deathbybandaid 2024-02-22 08:27:08 -05:00
parent e79d7c2730
commit 6923c5731e

View File

@ -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
}