From c2190f11d3d378011d5cefe24440fba871cf0b70 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 08:34:46 -0500 Subject: [PATCH] test --- plex-emptytrash.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index dfb5598..339c686 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -23,7 +23,8 @@ update_from_api() { do echo "Emptying Trash for key: ${library_number}" - curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN} + 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 done