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

./plexidrive.sh only prints file name #3

Closed Tawmmm closed 7 years ago

Tawmmm commented 7 years ago

Hey,

I've setup your scripts as per your instructions and ran through them several times to make sure I haven't made a mistake, however when I run ./plexidrive.sh the only output I get is root@cheesus ~/PLEXiDRIVE # ./plexidrive.sh File: Quantico - S02E21 - RAINBOW HDTV-720p.mkv

Doesn't seem to process or upload the file at all, anything obvious I've done wrong, or anywhere I can find some logs to see what's up?

I can do gdrive list which shows my gdrive files so that connects fine, and I have rclone mounting the gdrive fine.

Thanks!

masonr commented 7 years ago

You can check the 'upload-error' file, which should have any errors that have occurred during uploads. Also, double check the "gdrive_config_paths" variable in your 'plexidrive.conf' file -- make sure it's an absolute path and that it actually exists.

Let me know what you find! -Mason

Tawmmm commented 7 years ago

Aaaaand I feel dumb, it was the gdrive_config_paths small typo!

Thanks a lot for your help and great set of scripts! Just 1 more question, I've recently moved all my media over from ACD to google drive, do you have any suggestions for how I can get plex to scan all the existing data without getting 24 hour banned?

Thanks!

masonr commented 7 years ago

It's always the little things! :)

Absolutely! You have one of two options that I can think of.

  1. Easiest method - You bite the bullet and rescan the whole library (probably getting a 24-hour ban)
  2. Harder method - Take an ls of your Movie and TV Show directories and write each output to a file. Depending on how much media you have, you can either write a script or add by hand the prefixes (i.e. "tv:tv_show_name" or "mov:movie_name"). Then copy over 10 or 20 lines at a time to the _plexscan file and run the scanner every hour or two.

If it were me, I'd probably just do the auto scan and watch netflix or what have you for the next day until the ban is gone. But, that's ultimately up to you.

Good luck!, -Mason

Tawmmm commented 7 years ago

Alright bud thanks! I managed to scan all my movies before getting 403s, TV tomorrow I guess!

Thanks for your help!

masonr commented 7 years ago

Forgot another option you could try. If the directory structure is the same between your ACD and Drive mount, you could also try to just symlink the old mount path to the new mount path.

For example, if your old mount path for tv shows was: /mnt/acd/TV Shows and your new mount path is: /mnt/drive/TV Shows

You could just create a symlink from /mnt/acd to /mnt/drive and you wouldn't even need to rescan anything.

Edit: Just read your latest message. Sounds good.