-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Movie folder timestamp is updated to the current date when a movie is scraped #1688
Comments
Hi, thank you for bringing this up. It was never something that occurred to me as an issue. Just a few notes:
And you'd like (2) to not happen: Even if a file inside was changed, the modification date should stay the same. Did I get that correctly? 😄 I never thought about this. I didn't even know that was an option. (note to self: see e.g. https://doc.qt.io/qt-5/qfiledevice.html#setFileTime ). Regards, |
Hi, sorry for the delayed response. Was just updating my folders again today. Yes... item 2 is definitely a problem for some software. Unfortunately Plex, Kodi, and Infuse (on iOS), all seem to use the timestamp of the folder to determine "recently added" movies and shows. (it ignores the timestamp of the media file and nfo itself) "Recently Added" is how we see "new" stuff regardless of the release date of the movie itself. |
Don't worry. I'm a bit slow with my responses, too. See #1710 Regarding your issue: LinuxAt least on Linux, it appears to be on purpose that the directory's "last modified date" is changed when a movie is scraped, because we add files and add new subdirectories. To quote from StackOverflow:
If we don't want to change the directory's date, we'd have to first save the date in a variable, change all files, and then reset the directory's "last modified"-date. WindowsOn Windows with NTFS, the rules seem to be described in https://stackoverflow.com/a/46428666/1603627 . In short: MediaElch adds files when first scraping a movie. Those files include the NFO file, but also the If MediaElch were to reset these dates (assuming that's even possible), then we'd work around a filesystem feature. I'm hesitant to change that behavior. But even if we were to reset the date: We would probably need to handle all parent directories up to the root. But it may be that I'm missing something obvious. I'm not a Windows user myself. I'll have to look at https://github.com/DanCooper/Ember-MM-Newscraper/ and see how they do it. If there is a user who knows more about this topic, feel free to ping me or reply. :) Regards, |
Thanks for the feedback. This makes total sense (especially when the files are on linux/nas storage) |
Describe the bug
When scraping movies, the folder for the movie is updated to the current timestamp.
This causes media libraries/apps to recognize my entire library as "Recently Added".
Ordinarily, when i add a new movie to my collection, recently added includes only those which are actually recently added, not just recently scraped.
I made the mistake of scraping my entire library.... now I have no history of what's new and what's old.
At the least, there should be an option to DISABLE the timestamp being changed if the user wishes to maintain the existing historical timestamps. (For comparison, EmberMediaManager does not change timestamps when scraping)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
MediaElch Version:
Operating System:
Additional context
Storage device is a QNAP NAS.
As a comparison, Ember Media manager does not alter folder timestamps when scraping.
The text was updated successfully, but these errors were encountered: