ajkis / scripts

Ajki's scripts & guides
https://ajkis.github.io/scripts/
324 stars 91 forks source link

Does the plex generate folder list script duo work If I have plex on a different machine? #27

Open ghost opened 7 years ago

ghost commented 7 years ago

I don't fully understand what the script is doing. Also I don't have unionFS. Can I get it working to match my setup?

ajkis commented 7 years ago

yes its split into 2 scripts because of 2 server setup. Just change paths and remove unionfs one.

ghost commented 7 years ago

So what should i put on this line? MREFRESHFOLDER="${mfolder/$LOCALPATH/$UNIONFSPATH}" # Change path from /storage/local/ to /mnt/unionfs

ajkis commented 7 years ago

I need to know more about your setup. From what folder is rclone moving files and where is plex library pointed to.

ghost commented 7 years ago

plex library is pointing to /Server/ I have rclone on the download machine, my rclone move is /home/plex/media/TV Shows to Drive:TV Shows

ajkis commented 7 years ago

The unionfs part is basically replacing path from local folder from which rclone uploads with folder where plex is pointed. so basically you change LOCALPATH=/home/plex/media/ and UNIONFS=/Server/

ghost commented 7 years ago

So the first script does seem to upload properly, but it doesnt upload the list. These are the VARS: TIMESTAMP=date +%Y-%m-%d_%H-%M-%S LOGFILE="/home/plex/logs/local2acdcrypt.cron.log" MOVIES="/home/plex/media/Movie" SERIES="/home/plex/media/TV Shows" LOCALPATH="/home/plex/media/" UNIONFSPATH="/Server/" RCLONEREMOTE="Drive:" MINFOLDERAGE="5" # MINIMUM FOLDER AGE IN MINUTES. SCRIPT WILL ONLY STARTED WHEN THERE IS A MATCH

danielloader commented 7 years ago

Do these two machine scripts still exist? Can't easily see them in the repo.

ajkis commented 7 years ago

Yes https://github.com/ajkis/scripts/blob/master/plex/plexgeneratefolderlist.sh https://github.com/ajkis/scripts/blob/master/plex/plexrefreshfolderlist.sh