From 85218921c006c514f2bfc1877b8c7fd8cbc989de Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 08:46:44 -0500 Subject: [PATCH] test --- plex-refreshmetadata.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plex-refreshmetadata.sh b/plex-refreshmetadata.sh index 38e6442..6717f07 100644 --- a/plex-refreshmetadata.sh +++ b/plex-refreshmetadata.sh @@ -22,13 +22,10 @@ update_from_api() { # run a loop against each library for library_number in $LOCAL_LIBRARY_IDS do - plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}?X-Plex-Token=${LOCAL_PLEX_TOKEN}" - library_title=`curl -s -H "Accept: application/json" -H "X-Plex-Token: ${LOCAL_PLEX_TOKEN}" $plex_api_url | jq -M -r '.MediaContainer.Directory[] | "\(.title)"'` - echo $library_title echo "Running Library Update and metadata refresh for key: ${library_number}" plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}" - #curl -X GET $plex_api_url + curl -X GET $plex_api_url done }