test
This commit is contained in:
parent
13472f1e6a
commit
467ebf5d1d
@ -7,8 +7,7 @@ source ./plex-token.sh
|
|||||||
for medialibrary in `curl -s -H "Accept: application/json" -H "X-Plex-Token: ${TOKEN}" http://127.0.0.1:32400/library/sections`
|
for medialibrary in `curl -s -H "Accept: application/json" -H "X-Plex-Token: ${TOKEN}" http://127.0.0.1:32400/library/sections`
|
||||||
do
|
do
|
||||||
|
|
||||||
library_number=$(medialibrary | jq -M -r '.MediaContainer.Directory[] | "\(.key)"')
|
library_number=$($medialibrary | jq -M -r '.MediaContainer.Directory[] | "\(.key)"')
|
||||||
library_name=$(medialibrary | jq -M -r '.MediaContainer.Directory[] | "\(.title)"')
|
|
||||||
echo "$library_name"
|
echo "$library_name"
|
||||||
echo "$library_number"
|
echo "$library_number"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user