l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
396 stars 70 forks source link

Extend rclone rc to include cache/fetch #53

Closed danielloader closed 4 years ago

danielloader commented 5 years ago

So rclone has recently implemented https://rclone.org/rc/#cache-fetch-fetch-file-chunks so you can pre-warm the cache, would it be worth an optional config section to be able to warm up x amount of chunks at scan time?

I know plex scanning the file will read a set amount of the video file to get media stats, but it'd be nice to be able to preload say 100MB or 1GB etc.

desimaniac commented 4 years ago

Do you have an example RC command? And how many chunks at the start and/or end of the file would be wanted?

danielloader commented 4 years ago

I'll close this as for my personal use I've removed the cache layer and rely on VFS caching for rewinding. Didn't see the trade off benefits to storing chunks locally vs not, only worked well if a new file came out and multiple people were watching it at the same time but I've mitigated that by using mergerfs to keep a local cache of the last 7 days of files.