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

View File

@ -18,14 +18,14 @@ update_from_api() {
#source ./plex-token.sh
source ./plex-library-ids.sh
echo $LOCAL_LIBRARIES_IDS
echo $LOCAL_LIBRARIES_TITLES
array=$LOCAL_LIBRARIES_IDS
array2=$LOCAL_LIBRARIES_TITLES
# 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]}
while [ $i -lt ${#array[*]} ]; do
echo ${array[$i]} is in ${array2[$i]}
i=$(( $i + 1));
done