File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ if [[ -n $UPLOAD ]]; then
29
29
if [[ $mfolder == * " /movies/" * ]] ; then # Change /movies/ to match your path
30
30
MREFRESHFOLDER=" ${mfolder/ $LOCALPATH / $REPLACEDPATH } " # Change path from /storage/local/ to /mnt/unionfs
31
31
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
33
33
fi
34
34
done
35
35
for sfolder in " ${SERIESFOLDERS[@]} "
36
36
do
37
37
if [[ $sfolder == * " /series/" * ]] ; then # Change /series/ to match your path
38
38
SREFRESHFOLDER=" ${sfolder/ $LOCALPATH / $REPLACEDPATH } " # Change path from /storage/local/ to /mnt/unionfs
39
39
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
41
41
fi
42
42
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
46
46
fi
47
47
echo " $( date " +%d.%m.%Y %T" ) ENDED in $(( $(date + '% s') - $start )) seconds" | tee -a " $LOGFILE "
48
48
fi
You can’t perform that action at this time.
0 commit comments