.plexcached array files - reducing move operations update #15
Replies: 6 comments 34 replies
|
This looks great, I completely agree with the reasons to copy then rename. I will research more on unraid FUSE to ensure its not going to cause any issues but this is exactly where I was headed. Glad to see we are on the same page. I'm trying to finish my progress bar tonight then I will give this a proper try. |
|
@Brandon-Haney Figured I'd move the discussion back to here as that PR is closed off now anyway. I moved over your branch to my setup just to test it (I don't know if you were ready for it but I was curious) and so just wanted to give feedback on it so far:
That's all I have for now, cos it's doing the process of creating .plexcached files on my array so I can't get any further in testing until that's finished haha. |
|
What is the purpose of the new 'timestamps' file that is created? Mine seems to only contain - { Edit: |
|
@Brandon-Haney Recent log file. It seems to show the correct episodes onDeck (current ep + the number to look ahead from that) but they aren't in my exclude file. plexcache_log_20251203_0718.log plexcache_mover_files_to_exclude.txt I just checked the array and the missing files are also not on the array, but they are on cache, so the auto-.plexcached creation on first run of the script didn't copy those files. It did copy the s02e10 one though. So I don't know why. However that may explain why it doesn't work now, if the script relies on .plexcached files existing in order to work, so perhaps the issue was with the creation/upgrade to current version step. |
|
@Brandon-Haney moved the discussion here as I realised we were in the proposals thread haha. plexcache_log_20251204_2115.log Ok so I ran a test by adding two things to my watchlist, a movie (venom) and a tv series (9 out of 10 cats) but only the movie has been added to cache and picked up in the log. I checked and the new "watchlist tracker" and the exclude file and only venom appears in both. Edit: |
|
Now that you all have helped me get this new version working for me. I am not sure if this is the right place to comment regarding this. But, i just wanted to ask a couple questions regarding this. While i know this may not be limited to Unraid, it definitely seems like that is at least one of main OS platforms. With that said, when looking at Mover Tuning. I am trying to figure out the best way to have PlexCache move the files and not be fighting Mover settings. Based on the Mover Tuning plugin, i think copying the files from the array really is the only answer i can figure. Especially if it creates the new files with new file dates. This would allow Mover Tuning to be configured to ignore new files for X days at least. Maybe i am overlooking something. I appreciate the work you all are putting in for this. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Ok so the way I'm imagining that it would work -
[^1] - The reason why I say the files need to be renamed and removed in those orders, is so that there is always a file of that name on the /mnt/user file system that plex looks at. Otherwise if the move takes long enough, plex might remove the file from it's library temporarily before readding it when it finds it again. This can cause re-scans, or re-generating thumbnails etc, which wouldn't be ideal.
[^2] - The only thing to check for, is that I know unraid does -not- like having two files the same on both the array and the cache occupying the same place on the /mnt/user FUSE directory. I don't think it does much about it, but it gets confused about which one to prioritise. As it will only be happening for very short periods of time I -think- it'll be ok though.
Figured I'd write all this out here so there is a vague plan in place. Open to ideas / feedback / suggestions on it though!
@Brandon-Haney - Figured having a dedicated discussion page for this instead of doing it via issues and push request threads was a good idea haha.
All reactions