From d8b4107e12abcf71dc67d09ff1666e4598e36140 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 07:15:52 -0500 Subject: [PATCH] test --- plex-library-ids.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plex-library-ids.sh b/plex-library-ids.sh index 1e0ebd1..9b352c7 100644 --- a/plex-library-ids.sh +++ b/plex-library-ids.sh @@ -1,11 +1,11 @@ #!/bin/bash -token_from_api() { +ids_from_api() { source ./plex-token.sh 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 - ""|silent) token_from_Pref_XML;; + ""|silent) ids_from_api;; *) echo "'$2' is not a valid plex-tools library id command";; esac