test
This commit is contained in:
parent
2665cca418
commit
29dc0e1aa2
@ -24,7 +24,7 @@ update_from_api() {
|
|||||||
|
|
||||||
echo "Analyzing for key: ${library_number}"
|
echo "Analyzing for key: ${library_number}"
|
||||||
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
||||||
curl -X GET $plex_api_url
|
curl -X PUT $plex_api_url
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@ update_from_api() {
|
|||||||
source ./plex-token.sh
|
source ./plex-token.sh
|
||||||
echo "Cleaning Bundles"
|
echo "Cleaning Bundles"
|
||||||
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
||||||
curl -X GET $plex_api_url
|
curl -X PUT $plex_api_url
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$2" in
|
case "$2" in
|
||||||
|
|||||||
@ -24,8 +24,7 @@ update_from_api() {
|
|||||||
|
|
||||||
echo "Emptying Trash for key: ${library_number}"
|
echo "Emptying Trash for key: ${library_number}"
|
||||||
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
||||||
echo $plex_api_url
|
curl -X PUT $plex_api_url
|
||||||
#curl -X GET $plex_api_url
|
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@ -28,13 +28,13 @@ update_from_api() {
|
|||||||
|
|
||||||
echo "Emptying Trash for key: ${library_number}"
|
echo "Emptying Trash for key: ${library_number}"
|
||||||
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
plex_api_url="http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
||||||
curl -X GET $plex_api_url
|
curl -X PUT $plex_api_url
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Cleaning Bundles"
|
echo "Cleaning Bundles"
|
||||||
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
plex_api_url="http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
||||||
curl -X GET $plex_api_url
|
curl -X PUT $plex_api_url
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user