Skip to content

Commit

Permalink
Update plexgeneratefolderlist
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkis authored Apr 12, 2017
1 parent db5103a commit c532058
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plex/plexgeneratefolderlist
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ if [[ -n $UPLOAD ]]; then
if [[ $mfolder == *"/movies/"* ]] ; then # Change /movies/ to match your path
MREFRESHFOLDER="${mfolder/$LOCALPATH/$REPLACEDPATH}" # Change path from /storage/local/ to /mnt/unionfs
echo "Adding to plex.list: $MREFRESHFOLDER" | tee -a "$LOGFILE"
echo "$MREFRESHFOLDER" >>/home/plex/.cache/$TimeStamp-plex.list
echo "$MREFRESHFOLDER" >>/home/plex/.cache/$TIMESTAMP-plex.list
fi
done
for sfolder in "${SERIESFOLDERS[@]}"
do
if [[ $sfolder == *"/series/"* ]] ; then # Change /series/ to match your path
SREFRESHFOLDER="${sfolder/$LOCALPATH/$REPLACEDPATH}" # Change path from /storage/local/ to /mnt/unionfs
echo "Adding to plex.list: $SREFRESHFOLDER" | tee -a "$LOGFILE"
echo "$SREFRESHFOLDER" >>/home/plex/.cache/$TimeStamp-plex.list
echo "$SREFRESHFOLDER" >>/home/plex/.cache/$TIMESTAMP-plex.list
fi
done
if [[ -f /home/plex/.cache/$TimeStamp-plex.list ]]; then
echo "Uploading: $TimeStamp-plex.list" | tee -a "$LOGFILE"
/usr/bin/rclone move /home/plex/.cache/$TimeStamp-plex.list acdcrypt:/tmp/ -v --no-traverse --log-file=$LOGFILE #Change acdcrypt: to match your remote
if [[ -f /home/plex/.cache/$TIMESTAMP-plex.list ]]; then
echo "Uploading: $TIMESTAMP-plex.list" | tee -a "$LOGFILE"
/usr/bin/rclone move /home/plex/.cache/$TIMESTAMP-plex.list acdcrypt:/tmp/ -v --no-traverse --log-file=$LOGFILE #Change acdcrypt: to match your remote
fi
echo "$(date "+%d.%m.%Y %T") ENDED in $(($(date +'%s') - $start)) seconds" | tee -a "$LOGFILE"
fi
Expand Down

0 comments on commit c532058

Please sign in to comment.