test
This commit is contained in:
parent
e79d7c2730
commit
6923c5731e
@ -19,15 +19,12 @@ update_from_api() {
|
|||||||
source ./plex-library-ids.sh
|
source ./plex-library-ids.sh
|
||||||
|
|
||||||
# run a loop against each library
|
# run a loop against each library
|
||||||
i=0
|
|
||||||
for library_id in $LOCAL_LIBRARIES_IDS
|
for library_id in $LOCAL_LIBRARIES_IDS
|
||||||
do
|
do
|
||||||
library_title=$LOCAL_LIBRARIES_TITLES[$i]
|
|
||||||
|
|
||||||
echo "Emptying Trash for ${library_title} ${library_id}"
|
echo "Emptying Trash for ${library_id}"
|
||||||
curl -X GET http://127.0.0.1:32400/library/sections/${library_id}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
curl -X GET http://127.0.0.1:32400/library/sections/${library_id}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||||
|
|
||||||
i=$(( $i + 1));
|
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user