Page 1 of 1

Filter behaviour

Posted: 05 Mar 2017, 22:18
by xukie
Hi

I'm using the filter flag to indicate a preference for a recently released TV show (7 days) with a fallback for older shows if the search comes up empty. I'm actually using the same filter as documented (viewtopic.php?t=2127):

Code: Select all

--filter "age < 7 || !model.any{ it.age < 7 }"
I found an occasion where Filebot will find a match for media released recently, but it couldn't get a match on the episode:
CmdlineException: Failed to match files to episode data
In these circumstances Filebot appears to give up rather than execute the fallback. Is this the expected behaviour? If so, is there an alternative filter I could use that would continue the search?

Thanks

Re: Filter behaviour

Posted: 06 Mar 2017, 04:07
by rednoah
Since filter expressions allow arbitrary code, an infinite number of alternative filters are possible.

The first step would be to figure out why your existing filter doesn't work for the episode data in question, and then modify your filter to account for that.

My first guess would be that no airdate data for any episode has been entered yet.

:idea: Since you don't include logs or at least a TheTVDB link for the series in question, giving a meaningful answer is impossible.

Re: Filter behaviour

Posted: 06 Mar 2017, 09:10
by xukie
Thanks.

Here's the relevant part from the log
Input: /volume1/Downloads/Patriot.S01E01.WEBRip.X264-RARBG/Patriot.S01E01.WEBRip.X264-RARBG.mp4
Group: [tvs:patriot 2017] => [Patriot.S01E01.WEBRip.X264-RARBG.mp4]
Rename episodes using [TheTVDB]
Auto-detected query: [Patriot (2017), Patriot]
Fetching episode data for [Patriot (2017)]
Fetching episode data for [Patriot]
Apply filter [age < 7 || !model.any{ it.age < 7 }] on [17] items
No matching episode: Patriot.S01E01.WEBRip.X264-RARBG.mp4
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
The air date for this show is officially 5 Nov 2015 (http://www.imdb.com/title/tt4687882/epi ... =tt_ov_epl).

When I remove the filter it works, but because I'm using Filebot as an automated task that 90% of the time will be working with recently aired media I'd like to retain the filter if possible.

Appreciate any help you can provide.

Re: Filter behaviour

Posted: 06 Mar 2017, 09:46
by rednoah
Since we're using TheTVDB, not sure how checking IMDb would help us in making sure that TheTVDB has the correct data. ;)

e.g.

Code: Select all

filebot -list --q Patriot -non-strict --format '{[airdate, age]} {episode}'
Looks like most of the air dates haven't been entered yet:
http://thetvdb.com/?tab=seasonall&id=300185&lid=7

Re: Filter behaviour

Posted: 07 Mar 2017, 01:22
by weezypenguin
So the problem I see is that there are 2 totally different databases between TVDB and IMDB.
I am currently trying to sort out a whole lot of kids tv shows.
The problem is that the files are in the IMDB structure but Filebot (and others) use TVDB.
i.e the tvshow shows 2 episodes at the same time back to back. This then gives you one files. the season has 39/40 episode.
IMDB shows 20 files TVDB shows 39/40 files.
I hope this helps

Re: Filter behaviour

Posted: 07 Mar 2017, 05:34
by rednoah
1.
Please read this thread:
viewtopic.php?f=8&t=4746


2.
Presumably, files are still in order, so you can do things semi-automatically should be quite straight-forward:
https://www.youtube.com/watch?v=btNSv7AnMMw

Image