diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index 4bfc8a9..66f6b04 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -20,6 +20,12 @@ update_from_api() { # run a loop against each library echo "Emptying Trash for all libraries" + i=0 + while [ $i -lt ${#LOCAL_LIBRARIES_[*]} ]; do + echo ${LOCAL_LIBRARIES_IDS[$i]} is in ${LOCAL_LIBRARIES_TITLES[$i]} + i=$(( $i + 1)); + done + for index in ${!LOCAL_LIBRARIES_[*]} do library_id=${LOCAL_LIBRARIES_IDS[$index]}