Page 1 of 1

process only recently added files within a folder?

Posted: 03 Jun 2020, 18:17
by AbedlaPaille
Something like --filter "age < 3" but for date added instead of release date?

Re: process only recently added files within a folder?

Posted: 04 Jun 2020, 04:46
by rednoah
What does "date added" mean exactly?


:idea: 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

Re: process only recently added files within a folder?

Posted: 04 Jun 2020, 17:01
by AbedlaPaille
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?

Posted: 04 Jun 2020, 17:10
by rednoah
Have you tried the --file-filter option yet?
viewtopic.php?t=4222

e.g.

Code: Select all

--file-filter "age < 3"

Re: process only recently added files within a folder?

Posted: 04 Jun 2020, 18:48
by AbedlaPaille
Thank you master, works like a charm.

Re: process only recently added files within a folder?

Posted: 09 Jun 2020, 14:24
by AbedlaPaille
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?

Posted: 09 Jun 2020, 15:37
by rednoah
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.

Re: process only recently added files within a folder?

Posted: 09 Jun 2020, 20:10
by AbedlaPaille
You're the most helpful dev of all time.

Re: process only recently added files within a folder?

Posted: 11 Oct 2022, 13:57
by AbedlaPaille
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.