This commit is contained in:
deathbybandaid 2024-02-22 07:18:36 -05:00
parent 0b5bd9ffc7
commit c073cb6082

View File

@ -3,7 +3,7 @@
ids_from_api() { ids_from_api() {
source ./plex-token.sh source ./plex-token.sh
echo "Getting Plex Library list" echo "Getting Plex Library list"
LOCAL_LIBRARY_IDS=$(`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)"'`) LOCAL_LIBRARY_IDS=`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)"'`
} }
case "$2" in case "$2" in