test
This commit is contained in:
parent
cdf9fd740e
commit
fe5aba277f
@ -25,9 +25,3 @@ case "$2" in
|
||||
""|api) update_from_api;;
|
||||
*) echo "'$2' is not a valid plex-tools freshen command";;
|
||||
esac
|
||||
|
||||
|
||||
# clean PhotoTranscoder Cache
|
||||
#echo "Deleting PhotoTranscoder Cache"
|
||||
#CACHEPATH="$AppSuppDir/Plex Media Server/Cache/PhotoTranscoder"
|
||||
#find "${CACHEPATH}" -type f -delete
|
||||
|
||||
@ -19,10 +19,11 @@ update_from_api() {
|
||||
source ./plex-library-ids.sh
|
||||
|
||||
# run a loop against each library
|
||||
for i in "${!LOCAL_LIBRARIES_[@]}"
|
||||
for index in ${!LOCAL_LIBRARIES_[*]}; do
|
||||
do
|
||||
library_id="${LOCAL_LIBRARIES_IDS[i]}"
|
||||
library_title="${LOCAL_LIBRARIES_TITLES[i]}"
|
||||
library_id=${LOCAL_LIBRARIES_IDS[$index]}
|
||||
#"${LOCAL_LIBRARIES_IDS[index]}"
|
||||
library_title="${LOCAL_LIBRARIES_TITLES[index]}"
|
||||
|
||||
echo "Emptying Trash for Library: ${library_id} ${library_title}"
|
||||
curl -X GET http://127.0.0.1:32400/library/sections/${library_id}/emptyTrash\?X-Plex-Token=${LOCAL_PLEX_TOKEN}
|
||||
|
||||
@ -19,7 +19,7 @@ update_from_api() {
|
||||
source ./plex-library-ids.sh
|
||||
|
||||
# run a loop against each library
|
||||
for library_number in $LOCAL_LIBRARIES_ID
|
||||
for library_number in $LOCAL_LIBRARIES_IDS
|
||||
do
|
||||
|
||||
echo "Running Library Update and metadata refresh for key: ${library_number}"
|
||||
|
||||
@ -20,7 +20,7 @@ update_from_api() {
|
||||
source ./plex-library-ids.sh
|
||||
|
||||
# run a loop against each library
|
||||
for library_number in $LOCAL_LIBRARIES_ID
|
||||
for library_number in $LOCAL_LIBRARIES_IDS
|
||||
do
|
||||
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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user