test
This commit is contained in:
parent
c0a4d3e208
commit
ed6187f6bb
@ -23,7 +23,7 @@ update_from_api() {
|
|||||||
do
|
do
|
||||||
|
|
||||||
echo "Analyzing for key: ${library_number}"
|
echo "Analyzing for key: ${library_number}"
|
||||||
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/analyze\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ update_from_api() {
|
|||||||
do
|
do
|
||||||
|
|
||||||
echo "Emptying Trash for key: ${library_number}"
|
echo "Emptying Trash for key: ${library_number}"
|
||||||
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@ -23,15 +23,15 @@ update_from_api() {
|
|||||||
do
|
do
|
||||||
|
|
||||||
echo "Running Library Update and metadata refresh for key: ${library_number}"
|
echo "Running Library Update and metadata refresh for key: ${library_number}"
|
||||||
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
echo "Emptying Trash for key: ${library_number}"
|
echo "Emptying Trash for key: ${library_number}"
|
||||||
curl -X PUT http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Cleaning Bundles"
|
echo "Cleaning Bundles"
|
||||||
curl -X PUT http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/clean/bundles?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,6 @@ update_from_api() {
|
|||||||
do
|
do
|
||||||
echo "Running Library Update and metadata refresh for key: ${library_number}"
|
echo "Running Library Update and metadata refresh for key: ${library_number}"
|
||||||
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_number}/refresh\?force=1\&X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
#curl -X PUT "http://127.0.0.1:32400/library/sections/${library_number}/refresh?force=1&X-Plex-Token=${LOCAL_PLEX_TOKEN}"
|
|
||||||
|
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user