test
This commit is contained in:
parent
002c559701
commit
d8b4107e12
@ -1,11 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
token_from_api() {
|
ids_from_api() {
|
||||||
source ./plex-token.sh
|
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)"'`)
|
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
|
||||||
""|silent) token_from_Pref_XML;;
|
""|silent) ids_from_api;;
|
||||||
*) echo "'$2' is not a valid plex-tools library id command";;
|
*) echo "'$2' is not a valid plex-tools library id command";;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user