query on a show with different country versions

Any questions? Need some help?
Post Reply
noimporta
Posts: 5
Joined: 19 Dec 2013, 18:26

query on a show with different country versions

Post by noimporta »

Hi,

I've been renaming my old stack or tv shows and I've encountered this problem. Running Filebot on The Voice season 01 some episodes were renamed as The Voice (US) and others as The Voice (AU). When trying to rename with -rename I don't get it to match "The Voice (US)".

The Voice US
http://thetvdb.com/?tab=season&seriesid ... 3485&lid=7

The Voice AU
http://thetvdb.com/?tab=season&seriesid ... 0287&lid=7

Code: Select all

filebot -rename the.voice_season1
Filename pattern: [0.80] SxE, [1.00] CWS
Rename episodes using [TheTVDB]
Auto-detected query: [Voice, The Voice (US), The Voice (AU), The Voice]
Exception: Handling multiple shows requires non-strict matching
Failure (°_°)
I have tried with the --q parameter adding:

Code: Select all

--q "The Voice (US)"
but it won't work.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: query on a show with different country versions

Post by rednoah »

--q query is for forcing a query if the show can't be found. In your case the problem is that too many shows are found, so you need to exclude using --filter. And probably -non-strict since this is something you should normally do with the GUI.

Code: Select all

--filter "n =~ (US)"
:idea: Please read the FAQ and How to Request Help.
noimporta
Posts: 5
Joined: 19 Dec 2013, 18:26

Re: query on a show with different country versions

Post by noimporta »

Thanks for the response, filter works as long as you have something to exclude, problem is when all the words for a show are included in the next one. Let's say I want to run FB in

Code: Select all

So You Think You Can Dance Australia
, FB it's going to match it to

Code: Select all

So You Think You Can Dance
(US Version) that won't include US in the show name.

Therefore you end with the wrong rename, there is nothing to filter, since you can't filter the whole phrase

Code: Select all

So You Think You Can Dance
from the Australia title since then nothing gets matched. And -q with the whole title including Australia won't work either, not as -non-strict either.

Other than with the gui there is no fix for this right?
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: query on a show with different country versions

Post by rednoah »

--filter works with Groovy expressions and is therefore infinitely powerful.

Include ONLY the Australian version:

Code: Select all

--filter "n ==~ /So You Think You Can Dance Australia/"
(this is bad for automation since you can only rename that one show)

Include ALL BUT the US version:

Code: Select all

--filter "!(n ==~ /So You Think You Can Dance/)"
(this is good, it'll include So You Think You Can Dance Australia, Alias, Breaking Bad, etc, just not So You Think You Can Dance.


You can also get creative and attack the problem from different angles:

Code: Select all

--filter "info.Network != /FOX/"

Code: Select all

--filter "info.Network == /Network Ten/"
EXCLUDE any episode that has been aired more than 90 days in the past:

Code: Select all

((System.currentTimeMillis() - airdate.timeStamp) / (24 * 60 * 60 * 1000L)) < 90
I don't know what the best logic is but I know that the --filter options supports any logic that you could come up with. ;)
:idea: Please read the FAQ and How to Request Help.
noimporta
Posts: 5
Joined: 19 Dec 2013, 18:26

Re: query on a show with different country versions

Post by noimporta »

@rednoah : thanks a lot,yeah i played with some of those expressions to get the right one.

I thought I had replied , always helpful.

I have a new question. It's slightly related to this one, some files I've got don't follow usual naming , for instance, Big Bang instead of "The Big Bang Theory" . I want to use amc script for my automated queries and then for some specific shows use a csv file (like the one for forcing naming) to perform the amc tasks as usual but with the tvshows mappings I select.

Do you reckon it's possible? Basically the behaviour would be , call the script on a folder with multiple files, most will be processed but some like the previous one won't because it's undecided, if before amc performs the search knows that big bang is "the big bang theory" it would decide right.

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

Re: query on a show with different country versions

Post by rednoah »

Having files named The Big Bang Theory or Big Bang Theory shouldn't affect the auto-detection matching process since both are considered valid alias. Forcing the name is easy in the format, but at this point filebot already has decided on an Episode match.

Not sure what you're looking for. Is it having a special processing for some files, and then normal amc processing for others? Based on what criteria?

Force Matching:
http://www.filebot.net/forums/viewtopic ... =280#p1135

Force Naming:
http://www.filebot.net/forums/viewtopic.php?f=5&t=182
:idea: Please read the FAQ and How to Request Help.
Post Reply