masonr / PLEXiDRIVE

Scripts to facilitate the use of cloud storage (such as Google Drive) as storage for Plex media server
MIT License
145 stars 19 forks source link

custom user options #12

Open snickers2k opened 5 years ago

snickers2k commented 5 years ago

Awesome scripts. This is really what i've been looking for. Thank you! Only thing i'm missing is to add some customizations to rclone upload, without editing your scripts. I use a few rclone commands for my uploads. --bwlimit=10.0M --log-file=PATH --exclude ".placeholder" Aswell as "find"-options -mtime +3 Min-Age 3d is because i want Plex to analyze the items (thumbnails etc) before moving to GDrive, to lower the GDrive access as much as possible.

Would be great to have this in your .conf file. Maybe even dedicated line for logfile?

(another thing, please write down somewhere that " ~/ " is not working ;) )

Thank you

snickers2k commented 5 years ago

okay.. there are one or two things ... altough it's of course an awesome script,

besides missing custom-variables, the script does not respect the "Library Directories". my structure is "DriveName:Series" .. your script is adding to "DriveName:TV Shows" .. (missing of drive_tvshow_path and drive_movies_path )

all in all, needs a little bit more options for other users to be usable ;)

thanks anyway


made a few changes in a fork. still two things missing:

masonr commented 5 years ago

Hey @snickers2k, thanks for the interest and the recommendations on how to improve the project. I agree completely with being able to add rclone options and being able to define the root directory of where to find the tv shows/movies in the rclone remote (instead of defaulting to remote:TV Shows/ or remote:Movies/). I'll work on adding these changes in and will make them backwards compatible so they won't break any existing setups if someone pulls down the latest.

Sounds like we'll need these additional configuration options in the conf file:

To answer your other concerns --

another thing, please write down somewhere that " ~/ " is not working

For which option is this referring to? Take caution as to which user the plexidrive.sh script is being run as and which home directory you're trying to access. Best to use absolute paths due to this to avoid any confusion or issues.

script is still not putting inside Seasons folder, but instead directly in Series-Folder

The scripts auto-detect which series/season folders to place the media in based on the path of the to-be-uploaded media and it is based on the preceding directory structure. For instance, a file: /path/to/Series Name/Season Folder/Series Name - 5x10 - Episode Name.mp4, the two preceding directories of that file will be used as the series name and season folder, respectively. Obviously, this won't work well if your media isn't sorted and dumped into a common directory. I'd need to know more about your folder structure and such to make recommendations for your specific use-case.

snickers2k commented 5 years ago

thank you @masonr .

I order like this: "/path/to/Series Name/Season Folder/Episode Folder/Series Name - 5x10 - Episode Name.mp4" .. so another folder per Episode - to gather .nfo, .sub etc Altough this is not the official Plex-naming-scheme, it's working great with Plex - and for me, this makes much more sense. Maybe this is why it "breaks"?