process only recently added files within a folder?
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
process only recently added files within a folder?
Something like --filter "age < 3" but for date added instead of release date?
Re: process only recently added files within a folder?
What does "date added" mean exactly?
Here's the information we do get from TheTVDB, and so we don't have a Date-Added field for individual Episode records:
https://pastebin.com/6VE4V5Sn

https://pastebin.com/6VE4V5Sn
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
Re: process only recently added files within a folder?
Date added to the computer i meant. AKA the Date created and/or modified fields in your Explorer.
Re: process only recently added files within a folder?
Have you tried the --file-filter option yet?
viewtopic.php?t=4222
e.g.
viewtopic.php?t=4222
e.g.
Code: Select all
--file-filter "age < 3"
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
Re: process only recently added files within a folder?
Thank you master, works like a charm.
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
Re: process only recently added files within a folder?
Just a little thing. Windows stores 3 file ages. Date created, date modified and media created. The snippet you linked is for media created. Can i change it to date created?
Re: process only recently added files within a folder?
I guess {age} prefers to use the embedded media creation date. Using -no-probe will disable media parsing and allow {age} to default to the file creation date instead. Alternatively, you can use {f.creationDate} directly and then do the math yourself.
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
Re: process only recently added files within a folder?
You're the most helpful dev of all time.
-
- Posts: 107
- Joined: 12 Apr 2020, 04:02
Re: process only recently added files within a folder?
For reference i ended using --file-filter with {f.age}, as {f.creationDate} gave me numbers i couldn't understand and -no-probe with {age} only caught subtitle files.
--file-filter "f.age < 0.04" (1 hour) is useful to for example automatically generate hardlinks as a post process to the amc script, it'll reduce the disk load compared to deleting and regenerating the whole library.
--file-filter "f.age < 0.04" (1 hour) is useful to for example automatically generate hardlinks as a post process to the amc script, it'll reduce the disk load compared to deleting and regenerating the whole library.