only process files older than a xx hours?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
snickers2k
Posts: 26
Joined: 05 Nov 2016, 15:13

only process files older than a xx hours?

Post by snickers2k »

Hey. Is it possible to only process files older than a xx hours?
Because sometimes, filebot takes unfinished files out of my download-folder without being completely extracted.

Thanks.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: only process files older than a xx hours?

Post by rednoah »

Easy on Linux and Mac. See How to process only specific kinds of files? Option 4.

PS: If you call filebot/amc on uncomplete files you're doing it wrong. Fix your setup. Move completely folders to a separate location and have filebot/amc only process files that are in this separate location.
:idea: Please read the FAQ and How to Request Help.
snickers2k
Posts: 26
Joined: 05 Nov 2016, 15:13

Re: only process files older than a xx hours?

Post by snickers2k »

ok, thanks!
snickers2k
Posts: 26
Joined: 05 Nov 2016, 15:13

Re: only process files older than a xx hours?

Post by snickers2k »

Hey. I tried this with "--minAgeHours=1" but since most files has a very old Date (original creation date), this isn't working.
You said my setup is wrong. But i don't really know how to this. JD2 (and pyload aswell) extracts files directly into the "extraction-folder". And therefore they are unfinished in that folder aswell.

It would be a great thing to let Filebot check the Filesize 2 times - to see whether the filesize is changing or not ? That would be a really helpful option.
Thanks.

Update: "find ./ -type f -mtime +30 -exec filebot command {} \;" seems to work. thanks for pointing into the right direction.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: only process files older than a xx hours?

Post by rednoah »

1.
The correct usage looks like this:

Code: Select all

filebot -script fn:suball /path/to/media -non-strict --def maxAgeDays=7
So minAgeDays would be used like this:

Code: Select all

--def minAgeDays=1
or this:

Code: Select all

--def minAgeDays=0.1
:!: This is applicable to the suball script only, and not about the amc script.


2.
Checking if file size changes is a very unreliable way to do things, but you can of course do it this way and depending on your setup it might work well for you. That's up to your own wrapper script selecting the appropriate files and passing them on to filebot.

If I was using JD, then I'd probably use the existing JD integration scripts:
viewtopic.php?f=4&t=3478
:idea: Please read the FAQ and How to Request Help.
Post Reply