Age filtering when scanning files should use creation date
See original GitHub issueCurrently they are filtered by modified date here, but doesn’t creation date make more sense?
If you put/copy new files into the scanned folder they should be treated as new. The modified date will never change unless you re-encode, and that would probably also change the hash and break subtitle detection.
The creation date is platform dependent but I found this stackoverflow answer with cross-platform code.
edit: Probably better to use creation and modified dates and pick the latest?
So just max(os.path.getmtime(path), os.path.getctime(path))
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
File Dates (Aging) Report - FolderSizes
FolderSizes shows you the distribution of files by dates (age). This report can dynamically switch between NTFS date/time stamps (e.g. modified, created, and ......
Read more >Scanning Files | Kafka Connect File Pulse - GitHub Pages
The LastModifiedFileFilter can be used to filter files that have been modified to recently based on their last modified date property.
Read more >Important Considerations when filtering in Spark with filter and ...
This post explains how to use filter and where effectively in Spark. It teached you about predicate pushdown filtering, column pruning, ...
Read more >Limiting Powershell Get-ChildItem by File Creation Date Range
There's probably a way to limit the command by a date range, likely using Select-Object, I just can't figure it out. Get-ChildItem 'PATH'...
Read more >Overview of Files by Last Accessed Date Capability – Egnyte
The File Last Accessed timestamp is a feature specifically visible in the Egnyte Secure & Govern application that can be used to both...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A workaround would be to extract and touch the files
Exactly, so if you copy a file that you encoded a long time ago subliminal will not pick it up because only the creation time will change.
That does not seem to be the case when for example extracting using 7z or winrar. The files have their original modified date and a current creation date.