Only get subtitles for files less then 10 days old

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Only get subtitles for files less then 10 days old

Post by rednoah »

Using a bit of find, grep and xargs can get you a long long way with most automation tasks! :mrgreen:

For example to only download subtitles for files less than 10 days old.

e.g.

Code: Select all

find /volume1/data/Downloads/complete/ -type f -mtime -10 | xargs filebot -get-missing-subtitles -non-strict
So we just do a little find with -f files less than -mtime -10 days old and just pass all of that on to filebot. Naturally this will work just the same for any cmdline tool, not just filebot. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply