Skip to content

Commit c532058

Browse files
authored
Update plexgeneratefolderlist
1 parent db5103a commit c532058

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plex/plexgeneratefolderlist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ if [[ -n $UPLOAD ]]; then
2929
if [[ $mfolder == *"/movies/"* ]] ; then # Change /movies/ to match your path
3030
MREFRESHFOLDER="${mfolder/$LOCALPATH/$REPLACEDPATH}" # Change path from /storage/local/ to /mnt/unionfs
3131
echo "Adding to plex.list: $MREFRESHFOLDER" | tee -a "$LOGFILE"
32-
echo "$MREFRESHFOLDER" >>/home/plex/.cache/$TimeStamp-plex.list
32+
echo "$MREFRESHFOLDER" >>/home/plex/.cache/$TIMESTAMP-plex.list
3333
fi
3434
done
3535
for sfolder in "${SERIESFOLDERS[@]}"
3636
do
3737
if [[ $sfolder == *"/series/"* ]] ; then # Change /series/ to match your path
3838
SREFRESHFOLDER="${sfolder/$LOCALPATH/$REPLACEDPATH}" # Change path from /storage/local/ to /mnt/unionfs
3939
echo "Adding to plex.list: $SREFRESHFOLDER" | tee -a "$LOGFILE"
40-
echo "$SREFRESHFOLDER" >>/home/plex/.cache/$TimeStamp-plex.list
40+
echo "$SREFRESHFOLDER" >>/home/plex/.cache/$TIMESTAMP-plex.list
4141
fi
4242
done
43-
if [[ -f /home/plex/.cache/$TimeStamp-plex.list ]]; then
44-
echo "Uploading: $TimeStamp-plex.list" | tee -a "$LOGFILE"
45-
/usr/bin/rclone move /home/plex/.cache/$TimeStamp-plex.list acdcrypt:/tmp/ -v --no-traverse --log-file=$LOGFILE #Change acdcrypt: to match your remote
43+
if [[ -f /home/plex/.cache/$TIMESTAMP-plex.list ]]; then
44+
echo "Uploading: $TIMESTAMP-plex.list" | tee -a "$LOGFILE"
45+
/usr/bin/rclone move /home/plex/.cache/$TIMESTAMP-plex.list acdcrypt:/tmp/ -v --no-traverse --log-file=$LOGFILE #Change acdcrypt: to match your remote
4646
fi
4747
echo "$(date "+%d.%m.%Y %T") ENDED in $(($(date +'%s') - $start)) seconds" | tee -a "$LOGFILE"
4848
fi

0 commit comments

Comments
 (0)