Comments (91)
On line 314 I made this change it's crude but seems to have worked
file_path = file_path.replace(folder, nas_library_folders[j]).replace("\\", "/") # Replace the plex library folder with the corresponding NAS library folder
from plexcache.
Thank you, I'm working on a universal solution and your case seems perfect for this. So, whenever you can, please attach the redacted settings file you are currently using because I want to be sure the script outputs correctly once I've implemented the fix.
from plexcache.
One issue ive noticed in setup.py in both the test and existing is that "watched_cache_expiry" doesn't get generated :)
from plexcache.
Funny how is giving issues on stuff I haven't even touched ๐คฃ I'm checking now...
from plexcache.
plexcache_script_latest (1).log
dropped days to monitor down to1 for you to make the log file smaller ;)
from plexcache.
Looks good to me - you Mr Bexem have earnt many cups of coffee :)
from plexcache.
Sure thing ill take a look for you in a bit, been one of those days here so far!
from plexcache.
Managed to test all of these _rc releases and they work perfectly
from plexcache.
No worries sorry for the delay in letting you know, I wanted to let it run a few days :)
from plexcache.
Hi there!
The setup script is only to format nicely the settings file, the onlyexternal communication is with the plex server.
The cache script need to be run directly on the plexserver machine or at least in a machine who as access to the same paths and able to move files around.
from plexcache.
Then I'll need to be running this from the unraid server directly then as my windows VM for Plex can't see mnt cache....
from plexcache.
I suppose so, I personally run it directly on the unraid server (which is also my plex server), I think it makes sense as it has direct access to the directories avoiding any network/protocol overhead when moving files around.
from plexcache.
ok, so i moved it to unraid, and i think my settings is fine:
{
"PLEX_URL": "http://192.168.1.220:32400",
"PLEX_TOKEN": "SUPER SECRET",
"plex_source": "/",
"plex_library_folders": [
"P:\\Movies",
"P:\\TV Shows"
],
"valid_sections": [
1,
2
],
"number_episodes": 5,
"users_toggle": true,
"skip_users": [
null,
null,
null,
null,
null,
null,
null
],
"watchlist_toggle": true,
"watchlist_episodes": 1,
"watchlist_cache_expiry": 6,
"watched_cache_expiry": 48,
"days_to_monitor": 99,
"cache_dir": "/mnt/cache/",
"real_source": "/mnt/user/",
"nas_library_folders": [
"mnt/MediaShare/Movies",
"/mnt/MediaShare/TV Shows/"
],
"unraid": true,
"watched_move": false,
"skip": true,
"max_concurrent_moves_cache": 5,
"max_concurrent_moves_array": 2,
"debug": false,
"firststart": false
}
But getting this:
2023-05-19 09:32:00,338 - INFO - Total size of media files to be moved to cache: 0.00 KB
2023-05-19 09:32:00,338 - INFO - Nothing to move to cache
2023-05-19 09:32:00,338 - INFO - Script executed
from plexcache.
{
"PLEX_URL": "https://plex.bexem.xyz",
"PLEX_TOKEN": "********",
"plex_source": "/media/",
"plex_library_folders": [
"movies",
"anime",
"tvseries"
],
"valid_sections": [
1,
4,
2
],
"number_episodes": 10,
"users_toggle": true,
"skip_users": [],
"watchlist_toggle": true,
"watchlist_episodes": 5,
"watchlist_cache_expiry": 48,
"days_to_monitor": 183,
"watched_move": true,
"watched_cache_expiry": 12,
"cache_dir": "/mnt/cache/",
"real_source": "/mnt/user/",
"nas_library_folders": [
"movies",
"anime",
"tvseries"
],
"unraid": true,
"max_concurrent_moves_array": 2,
"max_concurrent_moves_cache": 5,
"skip": false,
"debug": false,
"firststart": false
}
Your plex library folders and the nas library folder appear to be wrong. Have a look at my settings and compare.
from plexcache.
So is your media in this example located at
/Mnt/user/movies
/mnt/user/tvseries
?
Which would suggest I need to change my real source to /mnt/user/mediashare
And then library folders to
Movies
TV Shows
?
from plexcache.
Yes,
my movies are in /mnt/user/movies
my series are in /mnt/user/tvseries
my anime are in /mnt/user/anime
As you can see the real source is /mnt/user/
and the nas_library_folders are the name of the folder above (movies, tvseries and anime)
Also your plex source was wrong at least judging from here, as it has so be the folder the container access the media from inside the container itself, with the plex_library_folders set similarly to the nas folder but according to how you have it configured (mine are exactly the same but you could have movies in the nas folder corresponding to films in the plex library as an example).
from plexcache.
Yeah, the plex is a WINDOWS server not on unraid, well it is its a VM but it access the media on unraid over an NTFS share. so the path for plex media is correct.
However, i think ive found a "windows" specific bug? I've managed to get it to run, and now it gives this error, with the slashes the incorrect way? needs to be some handling for windows file paths as thats how plex sees the media :)
So it now knows what to cache, and where from, but the "replace" isn't flipping the slashes to account for windows
from plexcache.
I agree the script should handle that, unfortunately I donโt really have a way to test but I will try my best to fix it anyway.
I will probably have a look into it this afternoon. (Night shift, GTM Tz)
Just so itโs clear for me later on: you are running plex on windows directly and not via docker container, correct?
Also, where would run the script? UnRaid?
If you donโt mind re-sharing your updated setting file?
from plexcache.
I'm running Plex directly on Windows yes.
Unraid is running the script
I think I found a solution which I'll share maybe point you the right way?
from plexcache.
Sure, anything can help ๐
from plexcache.
On line 314 I made this change it's crude but seems to have worked
file_path = file_path.replace(folder, nas_library_folders[j]).replace("\\", "/") # Replace the plex library folder with the corresponding NAS library folder
That is actually a not a so dirty solution but I will implement it soon in a conditional manner.
Could be unrelated but I rather be sure of it, would you mind telling me how do you have set up the script_folder variable in the cache script? Because you are running it on windows I guess you have a windows formatted folder syntax set?
from plexcache.
I'm running it on unraid
I'll double check on the script folder variable when I'm home but I'm sure I've got it set like... /Mnt/user/system/plexcache or similar
from plexcache.
Just an update: I've uploaded a setup_test.py script, it will produce a settings_test.json file (to avoid introducing errors in a working file).
I'm leaning towards having the setup script doing the checks and set the paths correctly rather than introducing more logic in the cache script. I might still change my mind, but for testing, the setup script is faster.
If you don't mind testing it and posting the result. It might not work at all, I haven't tested it (yet).
Thank you for your time anyway
from plexcache.
Well spotted, that was a minor bug that shows up only if answered no to moving the watched media! Fixed!
Any other issues?
from plexcache.
OK, so the "settings_test" or something funky is going on.
"PLEX_URL": "http://192.168.1.220:32400",
"PLEX_TOKEN": "XXXXXXXX",
"plex_source": "P:/",
"plex_library_folders": [
"P:\\Movies",
"P:\\TV Shows"
],
"valid_sections": [
1,
2
],
"number_episodes": 5,
"users_toggle": false,
"skip_users":[],
"watchlist_toggle": true,
"watchlist_episodes": 1,
"watchlist_cache_expiry": 24,
"watched_cache_expiry": 24,
"days_to_monitor": 99,
"cache_dir": "/mnt/cache/MediaShare",
"real_source": "/mnt/user/MediaShare/",
"nas_library_folders": [
"Movies",
"TV Shows"
],
"unraid": true,
"watched_move": true,
"skip": true,
"max_concurrent_moves_cache": 5,
"max_concurrent_moves_array": 2,
"debug": false,
"firststart": false
}
This is my settings file, it seems to ALWAYS set plex_source as p:/Movies and not just P:/ im assuming a bug here? as it just seems to always put the folder for the "first" library i select here so if i skipped movies and said yes to TV shows it would dbe P:/TV Shows ive been changing this to P:/
But the issue now seems to be that it thinks nothing is to be moved?
2023-05-22 08:17:27,610 - INFO - Initializing script...
2023-05-22 08:17:27,610 - INFO - Checking paths and permissions...
2023-05-22 08:17:27,611 - INFO - Loading watchlist media from cache...
2023-05-22 08:17:27,789 - INFO - Fetching teshiburu's onDeck media...
2023-05-22 08:17:29,083 - INFO - Editing file paths...
2023-05-22 08:17:29,084 - INFO - Fetching subtitles...
2023-05-22 08:17:29,089 - INFO - Loading watched media from cache...
2023-05-22 08:17:29,089 - INFO - Filtering media files array...
2023-05-22 08:17:29,422 - INFO - Total size of media files to be moved to array: 0.00 KB
2023-05-22 08:17:29,422 - INFO - Nothing to move to array
2023-05-22 08:17:29,423 - INFO - Filtering media files cache...
2023-05-22 08:17:29,423 - INFO - Total size of media files to be moved to cache: 0.00 KB
2023-05-22 08:17:29,423 - INFO - Nothing to move to cache
2023-05-22 08:17:29,423 - INFO - Script executed
Thank you for using my script github.com/bexem/PlexCache
from plexcache.
Edit: fixed the cache path above, but that didnt fix the issue, nothing to move apparently?
from plexcache.
Edit: fixed the cache path above, but that didnt fix the issue, nothing to move apparently?
Can you share your log file? (With debug mode set to true), it will help debugging.
It's very likely all down to how the script(s) is managing the paths and trying to retrieve the files and checking on the filesytem their existence. I honestly hoped python (as I've read) was going to deal a bit better with paths between windows and posix...but apparently not!
from plexcache.
It seems that no "cache" paths are being generated?
from plexcache.
That seems to be the issue, I need to understand why. I'm looking into it...
Not related, but does the script work (well, kind off apparently) if your plex folders are ['Movies', 'TV Shows'] instead of ['P:\Movies', 'P:\TV Shows'] ?
from plexcache.
let me try
same issue, no difference if i remove the P:\
from plexcache.
But it still fetches the files correctly?
Either way:
The problem is in the fact that is running on linux but is using a paths from windows and linux, I basically need to use a different library to make the script understand what is dealing with first and then correct the paths.
I have no way to test your scenario because both the script and plex server run on linux, I've introduced a plex_cache_test script, it might not work but it's worth a shot. I've also updated the setup_test, if you don't mind retesting that one, please post the exact settings_test.json, just comment how the paths should actually be without correcting it directly.
For the plexcache_test, the log should be enough.
Thank you.
from plexcache.
This appears to be generating extra braces?
{} "PLEX_URL": "http://192.168.1.220:32400",
"PLEX_TOKEN":
from plexcache.
ALso seems if i tell it to not import other users it fails to generate this line
"skip_users": [],
which it then moans about :)
from plexcache.
"watched_cache_expiry": 24,
is still missing, watchlist_cache_expiry seems to be generated but not watched
from plexcache.
ok - fixed issues in settings_test.json which i will comment and upload for you :)
but this is the log file after trying to run
2023-05-22 16:03:17,393 - INFO - Editing file paths...
2023-05-22 16:03:17,393 - INFO - Fetching subtitles...
2023-05-22 16:03:17,397 - INFO - Loading watched media from cache...
2023-05-22 16:03:17,397 - INFO - Filtering media files array...
2023-05-22 16:03:17,397 - WARNING - Error: file path P:\TV Shows\A Million Little Things\Season 5\A Million Little Things.-.S05E13.-.one.big.thing.WEBDL-1080p.-.h264 EAC3.mkv is not inside real source path /mnt/user/MediaShare
2023-05-22 16:03:17,397 - INFO - File: P:\TV Shows\A Million Little Things\Season 5\A Million Little Things.-.S05E13.-.one.big.thing.WEBDL-1080p.-.h264 EAC3.mkv
2023-05-22 16:03:17,397 - INFO - Cache_path: None
2023-05-22 16:03:17,397 - INFO - Cache_file_name: None
2023-05-22 16:03:17,397 - ERROR - Error checking free space and moving media files: stat: path should be string, bytes, os.PathLike or integer, not NoneType
from plexcache.
settings_test_upload.txt
settings :)
from plexcache.
Thank you honestly for testing it, it's a learning experience for me.
So I've updated (once again) the setup script, let me know it works now, should get the operating system on which plex is running automatically, fixed the brakets (honestly, such a weird one!), it should now put the right folders in the settings, and also fixed the cache variables not saving as they should have.
I'm gonna have a look at the cache script in the meantime.
from plexcache.
Awesome I'm out at present I'll check the setup script when I get home.
I may not have the knowledge to do what you are haha, but i can test and click buttons haha
from plexcache.
Awesome I'm out at present I'll check the setup script when I get home.
I may not have the knowledge to do what you are haha, but i can test and click buttons haha
Ahahah it works fine for me!
Also, I've updated the plexache test as well, I hope it works but I doubt...I'm not that lucky ๐คฃ
Let me know, as usual the log is the best way to debug the cache script.
from plexcache.
apparently "skip_users":[], is still not being added in when its told to not import other users?
from plexcache.
nor is "watched_cache_expiry":
from plexcache.
{
"PLEX_URL": "http://192.168.1.220:32400",
"PLEX_TOKEN": "XXXX",
"plex_source": "P:\\",
"plex_library_folders": [
"P:\\Movies\\",
"P:\\TV Shows\\"
],
"valid_sections": [
1,
2
],
"number_episodes": 5,
"users_toggle": false,
"watchlist_toggle": true,
"watchlist_episodes": 1,
"watchlist_cache_expiry": 24,
"days_to_monitor": 99,
"cache_dir": "\\mnt\\cache\\MediaShare\\",
"real_source": "\\mnt\\user\\MediaShare\\",
"nas_library_folders": [
"\\Movies\\",
"\\TV Shows\\"
],
"unraid": false,
"watched_move": true,
"skip": true,
"max_concurrent_moves_cache": 5,
"max_concurrent_moves_array": 2,
"debug": true,
"firststart": false
}
Generated settings_test.json
from plexcache.
OK - Tested it all - settings file attached (after ive fixed it commented in the lines i had to add to get it to work)
{
"PLEX_URL": "http://192.168.1.220:32400",
"PLEX_TOKEN": "XXXX",
"plex_source": "P:\\",
"plex_library_folders": [
"P:\\Movies\\",
"P:\\TV Shows\\"
],
"valid_sections": [
1,
2
],
"number_episodes": 5,
"users_toggle": false,
"skip_users":[], -- had to add in this line despite "users_toggle" being false
"watchlist_toggle": true,
"watchlist_episodes": 1,
"watchlist_cache_expiry": 24,
"watched_cache_expiry":24, -- and i had to add this one in
"days_to_monitor": 99,
"cache_dir": "\\mnt\\cache\\MediaShare\\",
"real_source": "\\mnt\\user\\MediaShare\\",
"nas_library_folders": [
"\\Movies\\",
"\\TV Shows\\"
],
"unraid": false,
"watched_move": true,
"skip": true,
"max_concurrent_moves_cache": 5,
"max_concurrent_moves_array": 2,
"debug": true,
"firststart": false
}
from plexcache.
And I've attached the log file... its fairly large, but from what i can see the "converted" file paths trhat it looks to use are missing the /mnt/user/MediaShare/ portion of their respective names. like "real_source" and "cache_dir" are not being added to the file name somewhere
from plexcache.
Oddly enough it was adding both watched_cache_expiry and skip_users when tested, but I've issued another fix, it hopefully fixes the paths as well as I am not happy about them.
I'm gonna have a look at the logs now.
If the paths are okay in the new settings_test.json might be worth retest the cache script, but probably better to do a step at the time.
from plexcache.
I wish i knew what i was doing to break it between you and me haha but now when it asks me to confirm paths it doesnt tell me for which library i only know because ive done it so much now haha
and the script failed here and didn't proceed further
from plexcache.
I hope I get this right this time ๐
Let's try again?
from plexcache.
Still getting the exact same bugs as last night. Fully removed all traces from my server and downloaded fresh from Github
from plexcache.
I'm sorry about that, I guess the issue is actually in the conversion. I have not fixed that because I really need to see how it is before and after the conversion, it will print when asking about the plex library before and after, but the logic remained the same.
About the array to cache (Just spotted the writing error as well), should be finally fixed now. I must have mixed up between the two enviroments I'm testing ๐คฆ๐ปโโ๏ธ
from plexcache.
OK - so is there a fixed version of the setup_test.py? i see a new plexcache_test.py but not setup_test :)
from plexcache.
You know the title of this threat? That's me. I don't know what the heck happened with VSCode but it basically replaced the content of the plexcache_test script with the setup_test one...it's fixed now...So now the setup_test is the one I was talking about.
from plexcache.
hahah - oh dear, im sorry to put you through this, have you got a Ko-Fi or a paypal i can drop you a coffee/beer haha!
from plexcache.
not sure if this is right? edit: in hindsight this may be right as its removed the trailing \ ?
also still not giving me a library to confirm the path for :)
something is not right here though hehe - log file was MAHOOSIVE had to zip it up for you as i didn't want to remove anything
from plexcache.
So, the cache script I'm leaving it for the time being because I want to be sure it gets the right paths first (in a specific way) so I can start working in a proper way to fix it. But thank you anyway, I will definitely have a look as it will help me!
Regarding the the setup output: I can see more or less where the issues are now, I just need to make the right logic to format the path.
I've updated it now, I hope it get it right...let me know ๐ค๐ป๐๐ป
Unfortunately I have to do some other stuff today, but I will still try and work on it later on but I guess we are both on different timezones. I'll keep the thread updated.
from plexcache.
No worries I'll wait for you to let me know there is a new thing to test
As for PayPal and such do let me know!
from plexcache.
Iโll deserve a coffee only if I solve it ๐ But thank you ๐
I have updated it with a new logic, might not have been obvious from my comment, apologies.
from plexcache.
Ahh ok I'll look
Do you think the issues lay in the setup or rather that's the place to get it right for the cache script to work as is
from plexcache.
latest log :)
settings_test.json.txt
and settings file :)
from plexcache.
Do you think the issues lay in the setup or rather that's the place to get it right for the cache script to work as is
I don't think it works as it is, but I would prefer to have a standardized settings file that the script files can reliably work with. I understand that the primary issue lies in the caching logic, but since the problem is related to paths, I want to ensure that I always work with the same style of paths rather than having a mix-and-match situation.
Sorry I must have pressed "close with comment" this time. Definitely not a closed issue.
Don't worry with the cache script yet, I'll tell you when to test it
Also, I've updated the setup script again, I really don't want that "P://" in the libraries, I know it confuses the cache script.
from plexcache.
new version gives this error
from plexcache.
Sorry about that ๐
I've theoretically fixed it...
from plexcache.
So...I've made progress on both scripts, and they seem to be functioning properly from my end. However, I haven't been able to test the Windows paths, so there's a possibility that they might not work for you.
I've streamlined and optimized some of the functions in the setup script. Although it will ask you about the operating system you're using, I don't plan on using that information in the future because the cache script now detects the operating system and dynamically converts the paths accordingly. It should ideally handle the paths correctly, even when running on Windows. Additionally, I've incorporated a Python utility for file copying, which is not specific to Linux.
I'm hopeful that these changes will work, but I'm still a bit skeptical. Nonetheless, I believe we're heading in the right direction, and it shouldn't be too long before you're up and running (plus, I have a couple of days off).
from plexcache.
Ok - I think we MAY be there one potential issue with setup_test.py in that when it generated my paths for:
cache_dir - which should have been /mnt/cache/MediaShare
real_source - which should have been /mnt/user/MediaShare
it generated these
\mnt\cache\MediaShare
\mnt\user\MediaShare
as you can see here
settings_test.old.txt
When then running plexcache_test
The following errors occurred
2023-05-24 08:20:38,108 - ERROR - Error checking free space and moving media files: [Errno 2] No such file or directory: '\\mnt\\user\\MediaShare\\/Movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man and the Wasp Quantumania (2023) WEBRip-1080p.mkv'
And as youc an see in the log file all paths were rendered like this :
plexcache_test_script_latest.old.log
whereas if i "corrected" the settings_test.json file to have the paths like this
/mnt/cache/MediaShare
/mnt/user/MediaShare
this was the final settings_test file
it seemed to yield positive results in the log file insinutating that content would be moved:
plexcache_test_script_latest.log
from plexcache.
on further review of the successful log file above i spotted that the cache_dir and real_dir ended up with a slash at the end of the path, and a slash on the media directory as seen here between MediaShare and TV Shows
2023-05-24 08:23:18,421 - INFO - ('/mnt/user/MediaShare//TV Shows/Bitten/Season 2/Bitten.-.S02E10.-.Fine.Temporum.WEBDL-1080p.-.x264 EAC3.mkv', '/mnt/cache/MediaShare/TV Shows/Bitten/Season 2')
The rest of the path seems fine, so i assume tidying up this would allow it to move data :)
EDIT: i removed the trailing slash from the cache_dir and real_source and everything seemed ready to work :) now im 100% sure trhat i didnt add the trailing slash in manually, on those paths, but i may have added a leading slash to the library folders... but this isnt in the settings file?
from plexcache.
Sorry I'm a bit confused, probably my brain hasn't woken up completely yet and likely I'm just missing the obvious:
The setup script is giving you exactly what paths?
As far I've understood it gave you:
- \mnt\cache\MediaShare
- \mnt\user\MediaShare
That sounds so weird to me because the logic asks you specifically for which OS you want to run the script and convert the path to the right syntax and should instead be: - /mnt/cache/MediaShare/
- /mnt/user/MediaShare/
But then you noticed that the trailing "/" at the end of this path is actually giving you issue with the cache script and if removed it actually works?
Sorry if you have to ELI5 to me, just need another coffee today I guess ๐คฆ๐ปโโ๏ธ๐
EDIT:
I can definitely see the "//" issue in the cache script, I have completely missed it last night, easy to fix.
I just need to be sure on what paths the setup is giving you and it should be all easy to fix! ๐
EDIT2:
In the meanwhile I'm adjusting the cache script to automatically fix the trailing slashes and saving it in the settings file (if someone did not use the setup script for example).
I will need a windows user running the cache script to know for sure if it works, but until then I guess it does.
from plexcache.
Hey - we all have that first thing in the morning wake up issue haha! and it seems i did as well, i absent mindedly typed "Windows"... my brain farted it seems.
Now the settings file looks correct and plexcache seems to work?
settings_test.json.txt
plexcache_test_script_latest.log
I'm gonna give the script a run and see what happens :)
from plexcache.
So...........
I've updated the scripts now...happy to test?
I hope it works!!!
from plexcache.
I will give it a go in a short while :)
from plexcache.
ok tested, and we seem to have taken a step back.
file paths seem ok now.
but it was missing
"watched_move": true,
"debug": true
And it decided nothing needed to be moved?
plexcache_test_script_latest (1).log
from plexcache.
I am wondering if its because some of these are present on cache already? im just running a mover to test will update soon
edit: mover ran, tested again no joy
from plexcache.
Setup Script:
I've dones quite few tests and both of them work fine, they use the exact same logic as all the other questions asking yes or no, and in fact it works. But I did notice a bug in the watched media cache expiration variable, it now actually asks for the value instead of putting a defined value.
Still, I could be wrong and missing the obvious, so I'm keeping an eye on it and doing further tests.
Cache script:
I think the error was the new logic to edit the path to make them compatible, it was handling the windows path incorrectly, now it should behave...
Have a look at the new scripts...
EDIT: I've rechanged the logic of the debug question just in case, as I said it was working for me, but that's not good enough, so I've changed it and it will hopefully work for you too.
from plexcache.
Not sure which of the debug logics i got inbetween you updating and editing, but this time it seemed to work :)
I had a positive looking log file, now to run a test and see if it moves...
plexcache_test_script_latest (2).log
I'm assuming when it says a file has moved if i go to /mnt/cache/MediaShare - the relevant folder i should see the files present there
from plexcache.
If you don't mind testing it but it should work.
The log seems fine, it should work and move all the files correctly.
My favourite word apparently is "should" ๐คฃ
PS: I like that Jurassic Park in there!
from plexcache.
I'm at a bit of a loss as to what some aspects of the log are showing me, but I'm assuming the section after "moving media files to the cache" is what is actually going to move?" because Jurassic park isn't on deck, or watch list anywhere haha
from plexcache.
No the Jurassic Park was completely random, I noticed it while scrolling up in the log file. I should have specified ๐คฆ๐ปโโ๏ธ
I'm assuming the section after "moving media files to the cache" is what is actually going to move?
Absolutely yes.
from plexcache.
I mean cache drive available space is reducing, and the log looks positive
2023-05-24 16:08:42,050 - INFO - Moving media files to cache...
2023-05-24 16:09:01,966 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Gotham/Season 1/Gotham.-.S01E01.-.Pilot.WEBDL-720p.h264.AC3.[EN].-ECI.mkv to /mnt/cache/MediaShare/TV Shows/Gotham/Season 1
2023-05-24 16:09:10,680 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bellevue/Season 1/Bellevue.-.S01E01.-.Pilot.WEBRip-1080p.-.x264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bellevue/Season 1
2023-05-24 16:09:50,913 - INFO - Moved file from /mnt/user0/MediaShare/Movies/John Wick Chapter 4 (2023)/John Wick Chapter 4 (2023) WEBDL-1080p.mkv to /mnt/cache/MediaShare/Movies/John Wick Chapter 4 (2023)
2023-05-24 16:09:55,184 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Gifted/Season 1/The Gifted.-.S01E01.-.eXposed.WEBRip-1080p.-.h265 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Gifted/Season 1
2023-05-24 16:12:14,792 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Lazer Team 2 (2017)/Lazer.Team.2.2017.Remux-1080p.DTS-HD.MA.AVC-LEGi0N.mkv to /mnt/cache/MediaShare/Movies/Lazer Team 2 (2017)
2023-05-24 16:12:51,503 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Lord of the Rings - The Rings of Power/Season 1/The Lord of the Rings - The Rings of Power.-.S01E01.-.A.Shadow.of.the.Past.WEBDL-2160p Proper.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/The Lord of the Rings - The Rings of Power/Season 1
2023-05-24 16:12:58,808 - INFO - Moved file from /mnt/user0/MediaShare/Movies/The Super Mario Bros. Movie (2023)/The Super Mario Bros. Movie (2023) HDTV-1080p.mp4 to /mnt/cache/MediaShare/Movies/The Super Mario Bros. Movie (2023)
2023-05-24 16:13:07,979 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Bullet Train (2022)/Bullet.Train.2022.1080p.WEB-HD.x264.6CH-Pahe.in.mkv to /mnt/cache/MediaShare/Movies/Bullet Train (2022)
2023-05-24 16:13:10,593 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Vikings/Season 2/Vikings.-.S02E05.-.Answers.in.Blood.WEBRip-1080p.-.h265 AAC.mp4 to /mnt/cache/MediaShare/TV Shows/Vikings/Season 2
2023-05-24 16:13:40,426 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Mandalorian/Season 1/The.Mandalorian.-.S01E01.-.Chapter.1.The.Mandalorian.WEBDL-2160p.h265.EAC3.[EN+DA+NL+FI+FR+DE+IT+NB+PL+PT+ES+SV].-DEFLATE.mkv to /mnt/cache/MediaShare/TV Shows/The Mandalorian/Season 1
2023-05-24 16:14:18,639 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Wheel of Time/Season 1/The Wheel of Time.-.S01E01.-.Leavetaking.WEBRip-1080p.-.x264 EAC3 [EN+AR+CS+DA+DE+EL+ES+FI+fil+FR+HE+HI+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TA+TE+TH+TR+ZH].mkv to /mnt/cache/MediaShare/TV Shows/The Wheel of Time/Season 1
2023-05-24 16:14:26,124 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Wednesday/Season 1/Wednesday.-.S01E01.-.Wednesdays.Child.is.Full.of.Woe.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/Wednesday/Season 1
2023-05-24 16:14:41,536 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Angie Tribeca/Season 1/Angie Tribeca.-.S01E01.-.Pilot.WEBDL-1080p.-.h264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Angie Tribeca/Season 1
2023-05-24 16:14:49,911 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Order/Season 1/The Order.-.S01E02.-.Hell.Week.2.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/The Order/Season 1
2023-05-24 16:14:56,335 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bull (2016)/Season 1/Bull (2016).-.S01E01.-.The.Necklace.WEBRip-1080p.-.h265 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bull (2016)/Season 1
2023-05-24 16:15:22,344 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Shadow and Bone/Season 1/Shadow and Bone.-.S01E01.-.A.Searing.Burst.of.Light.WEBDL-2160p.-.HEVC EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/Shadow and Bone/Season 1
2023-05-24 16:15:32,605 - INFO - Moved file from /mnt/user0/MediaShare/Movies/The Hobbit (1977)/The Hobbit (1977) WEBDL-720p.mkv to /mnt/cache/MediaShare/Movies/The Hobbit (1977)
2023-05-24 16:15:43,890 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man and the Wasp Quantumania (2023) WEBRip-1080p.mkv to /mnt/cache/MediaShare/Movies/Ant-Man and the Wasp Quantumania (2023)
2023-05-24 16:16:10,533 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Mayor of Kingstown/Season 1/Mayor of Kingstown.-.S01E01.-.The.Mayor.of.Kingstown.WEBDL-2160p Proper.-.x265 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Mayor of Kingstown/Season 1
2023-05-24 16:16:27,177 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E06.-.Nine.Circles.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:16:38,686 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E07.-.Bad.Dreams.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:16:51,163 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E08.-.Dark.Arts.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:04,918 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E09.-.Scavengers.Daughter.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:19,064 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E10.-.Fine.Temporum.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:41,335 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 3/Bitten.-.S03E01.-.Family.Of.Sorts.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 3
2023-05-24 16:17:48,664 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E02.-.Dance.Dance.Resolution.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:17:56,234 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E03.-.Team.Cockroach.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:05,308 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E04.-.Existential.Crisis.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:14,008 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E05.-.The.Trolley.Problem.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:20,950 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E06.-.Janet.and.Michael.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:29,322 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E07.-.Derek.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:38,545 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E15.-.The.Princess.and.the.Pear.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:18:45,983 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E16.-.The.Bones.That.Foam.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:18:53,510 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E17.-.The.Salt.in.the.Wounds.WEBDL-1080p.-.h264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:00,724 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E18.-.The.Doctor.in.the.Den.WEBDL-1080p.-.h264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:07,870 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E19.-.The.Science.in.the.Physicist.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:13,538 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E20.-.The.Cinderella.in.the.Cardboard.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:17,876 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E04.-.The.Fight.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:21,875 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E05.-.The.Calling.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:27,803 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E06.-.The.Pyramid.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:32,344 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E07.-.The.Storm.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:36,073 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E08.-.The.Key.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:51,223 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E04.-.Chapter.Four.Dear.Billy.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
2023-05-24 16:20:05,926 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E05.-.Chapter.Five.The.Nina.Project.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
2023-05-24 16:20:20,541 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E06.-.Chapter.Six.The.Dive.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
from plexcache.
Nice! Yeah the command is correct, path look fine and as you've said the space is actually decreasing..
I shall wait for your confirmation to call it a win!
from plexcache.
Success on the scripts end.
and the cache drive concurs
from plexcache.
So now if you run it again it will said nothing to be moved, right?
And you are happy about the fact that there is nothing to be moved from cache to array?
from plexcache.
Second run says nothing to move to cache, and nothing to move to array.
I suppose with this - the only "issue" is to determine when to run this alongside unraids mover?
from plexcache.
I suppose so. The mover would move back all the media residing on the cache drive if configured to do so, ignoring the script all togheter.
I am using the plugin Mover Tuning for this reason:
And I also run the script in chronos docker container in with chron, running it every X hours.
from plexcache.
So you move all from cache when you get above 80% usage on your cache drive?
from plexcache.
Basically yes, I've never reached that threshold yet as the script also moves the files back to the array so the drive keep enough space free.
Of course it means you need to have a good backup measures because you have no parity on the cache drive as you do with the array.
from plexcache.
Yeah - ive got backblaze running on that so not an issue there for backups i dont think.
ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!
from plexcache.
Yeah - ive got backblaze running on that so not an issue there for backups i dont think.
Yeah that should be more than enough!
ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!
I can post the screenshots of my chronos configuration if it is of any help?
from plexcache.
Yeah - ive got backblaze running on that so not an issue there for backups i dont think.
Yeah that should be more than enough!
ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!
I can post the screenshots of my chronos configuration if it is of any help?
Oh yeah that would really help!
from plexcache.
Use chron.guru For the chron syntax
from plexcache.
WOW thank you!!! โค๏ธ
I'm so glad we managed to fix it!!
I'm still improving it as we speak but mostly for windows users, I will then merge our achievements to the main script.
I shall close the issues now, but feel free to contact me (I'm sure I've put my discord on my website) if you need a hand or if script related, just open another issue!
from plexcache.
Spot on no worries, ill reach out with issues dont worry haha!
When you do update the cache script i just paste it back into Chronos right :)
from plexcache.
Spot on no worries, ill reach out with issues dont worry haha!
When you do update the cache script i just paste it back into Chronos right :)
Hey, thank you again for the support! I just wanted to ask a small favour:
In case you have a couple of minutes, would you mind testing the new _rc scripts?
Testing branch
I just want to be sure they work for you as well before merging.
I've left the old _test scripts as failover because I know they work for both of us.
PS: You are now mentioned in the script
from plexcache.
Managed to test all of these _rc releases and they work perfectly
Amazing! Thank you so much for testing them out!!!
They are now completely merged in the main branch (I was ready to backtrack!).
from plexcache.
Related Issues (19)
- Allow user to define which Sections to process
- Setup.py "no such file exists in directory" HOT 39
- FileNotFoundError HOT 5
- Feature request HOT 42
- Error: [Errno 2] No such file or directory. Files exist can touch and ls. HOT 47
- Conflict with Mover/Mover Tuning HOT 10
- Monitor "Now playing" and move to cache? HOT 6
- Some Watchlist "Problems" HOT 63
- Looking for Clarification regarding use in Ubuntu HOT 18
- Error moving file HOT 6
- First run not working properly, 2nd run will not run due to not enough size HOT 1
- OnDeck read error.
- Run in a container / as a plug in?
- how to setup correctly if movies/tv are on differents NAS/Unraid server HOT 3
- Feature request: Add ability to monitor "Watched" content and move it to array HOT 1
- Ownership/Permissions issue HOT 2
- CRITICAL - Error checking free space and moving media files to the array: [Errno 2] No such file or directory: HOT 4
- /mnt/user/system/./locatefileinarray.sh: No such file or directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexcache.