This commit is contained in:
deathbybandaid 2024-02-22 08:21:00 -05:00
parent 9b11d4b6d8
commit 035914fb2d

View File

@ -18,15 +18,15 @@ update_from_api() {
#source ./plex-token.sh #source ./plex-token.sh
source ./plex-library-ids.sh source ./plex-library-ids.sh
echo $LOCAL_LIBRARIES_IDS array=$LOCAL_LIBRARIES_IDS
echo $LOCAL_LIBRARIES_TITLES array2=$LOCAL_LIBRARIES_TITLES
# run a loop against each library # run a loop against each library
echo "Emptying Trash for all libraries" echo "Emptying Trash for all libraries"
i=0 i=0
while [ $i -lt ${#LOCAL_LIBRARIES_[*]} ]; do while [ $i -lt ${#array[*]} ]; do
echo ${LOCAL_LIBRARIES_IDS[$i]} is in ${LOCAL_LIBRARIES_TITLES[$i]} echo ${array[$i]} is in ${array2[$i]}
i=$(( $i + 1)); i=$(( $i + 1));
done done
for index in ${!LOCAL_LIBRARIES_[*]} for index in ${!LOCAL_LIBRARIES_[*]}