This commit is contained in:
deathbybandaid 2024-02-22 07:08:28 -05:00
parent 3ea882896c
commit 0889779589

View File

@ -21,7 +21,8 @@ update_from_api() {
for library_number in `curl -s -H "Accept: application/json" -H "X-Plex-Token: ${LOCAL_PLEX_TOKEN}" http://127.0.0.1:32400/library/sections | jq -M -r '.MediaContainer.Directory[] | "\(.key)"'` for library_number in `curl -s -H "Accept: application/json" -H "X-Plex-Token: ${LOCAL_PLEX_TOKEN}" http://127.0.0.1:32400/library/sections | jq -M -r '.MediaContainer.Directory[] | "\(.key)"'`
do do
echo "Running Library Update and metadata refresh for key: ${library_number}" echo "Running Library Update and metadata refresh for key: ${library_number}"
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN} #curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/refresh?force=1&X-Plex-Token=${LOCAL_PLEX_TOKEN}
done done
} }