stokkes / plex_rcs

Plex rclone cache scanner
27 stars 6 forks source link

Work with vfs cache? #4

Open zhdenny opened 5 years ago

zhdenny commented 5 years ago

Just curious.....I see this talk about rclone mount cache. Does this work with vfs?

rclone mount
--max-read-ahead 1024k
--allow-other
--dir-cache-time 72h
--buffer-size 64M
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit=1G
--uid 99 --gid 100 --default-permissions
--log-level INFO --syslog
tdrive: /mnt/disks/tdrive
zhdenny commented 5 years ago

Just noticed looks like you added support for VFS a little under a month ago https://github.com/stokkes/plex_rcs/commit/7afc7e52a4119c35bd9964aa8a352f6b22093d09

Anything special necessary I should know about? Like, do I need --vfs-cache-mode to be set to anything specific....I believe the default is off

Just about to go through the install setup/config

thonsouza commented 5 years ago

I would also like to know, as I am having difficulty in configuring.

zhdenny commented 5 years ago

I would also like to know, as I am having difficulty in configuring.

I forked the edits I made to get it to work for me. I'd take a look at those edits. Details in the fork https://github.com/zhdenny/plex_rcs

Summary:

  1. Modified docker exec command which triggers the Plex Scan
  2. Required to use --log-level DEBUG in the rclone mount AND log to file (instead of syslog)
  3. Modified the code where it monitors the log file to detect changes.