Issue with age filter

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Issue with age filter

Post by pax0707 »

After I started using --filter age to get rid of false matches with all old series I'm having issues with episodes get become available earlier then they should.
I guess it's kinda "working as intended".
I would expect it to ignore episodes older then x days but it also ignores "future" episodes.

Code: Select all

Input: D:\Done\BTN\wayward.pines.106.hdtv-lol.mp4
wayward.pines.106.hdtv-lol.mp4 [series: wayward pines, movie: null]
Group: [tvs:wayward pines, mov:null, anime:null] => [wayward.pines.106.hdtv-lol.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [wayward pines]
Fetching episode data for [Wayward Pines]
Apply Filter: {age < 90}
Include [Wayward Pines - 1x01 - Where Paradise Is Home]
Include [Wayward Pines - 1x02 - Don't Discuss Your Life Before]
Include [Wayward Pines - 1x03 - Our Town, Our Law]
Include [Wayward Pines - 1x04 - One of Our Senior Realtors Has Chosen to Retire]
Include [Wayward Pines - 1x05 - The Truth]
[COPY] Rename [D:\Done\BTN\wayward.pines.106.hdtv-lol.mp4] to [D:\Done\SERIJE\Wayward Pines - S01E05 - The Truth.mp4]
Processed 1 files
User avatar
rednoah
The Source
Posts: 23953
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Issue with age filter

Post by rednoah »

Sorry, but {age} will error out if it's negative or if {airdate} is not available. Which is intended and beneficial in most cases.

You could allow negative times by checking it yourself:

Code: Select all

{d.timeStamp > (now.time - 7*24*60*60*1000)}
--filter is inherently something that has to be fine-tuned to your exact setup. If you process episodes before their release date, than you can't use a filter that only allows episodes that have aired already. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply