Page 1 of 1

Helping FileBot/AMC Figure Out The Correct TV Show?

Posted: 02 Feb 2022, 01:16
by HarryMuscle
Is there any trick to helping FileBot/AMC figure out the correct TV show based on the name of the series folder? I run a scheduled FileBot/AMC script so specifying the show ID using the command line argument isn't ideal. I prefer to just rename the main series folder and wait until the next scheduled run of the script. Is it possible to add the show ID number to the series folder name somehow to result in a perfect match?

So far TV showing matching is resulting in more wrong matches that right matches. For example, the following series folder names resulted in the following choices using non strict matching:

MystBusters -> Motor MythBusters (2021)
MythBusters (2003) -> Motor Mythbusters (2021)

Movies seem to get matched pretty well, but TV shows seem to be more difficult to match.

Thanks,
Harry

Re: Helping FileBot/AMC Figure Out The Correct TV Show?

Posted: 02 Feb 2022, 01:26
by rednoah
1.
The --filter option can be used for that. Please read FAQ #2 for details.

e.g. ignore TV Shows with "motor" in the name:

Code: Select all

--filter '!(n =~ /Motor/)'


2.
Please post file paths and logs if you encounter mismatches. This case seems to be a very specific problem of "two shows with the same name" that didn't exist pre-2021 because "Motor MythBusters" didn't exist yet (though that's not necessarily a problem; but without file paths nobody can guess why it's a problem in your specific case) so if you have problems with different files / TV shows, then there's likely different unique unrelated underlying problems in each case.


e.g. works for me by default, so it'll be interesting what's different in your specific case:

Code: Select all

$ filebot -rename *.mp4 --db TheMovieDB::TV -non-strict --action TEST --log INFO
[TEST] from [MythBusters.1x01.mp4] to [MythBusters - 1x01 - Jet-Assisted Chevy.mp4]

:idea: Please read How to Request Help.



EDIT:


TheTVDB doesn't work here, depending on your file naming, since MythBusters does not have a 1x01 episode, only a 2003x01 episode:

Code: Select all

$ filebot -list --q MythBusters --db TheTVDB
MythBusters - 2003x01 - Jet Assisted Chevy
MythBusters - 2003x02 - Biscuit Bazooka
...
(and so FileBot matches some other similarly named series that has an unfortunately has an 1x01 episode; manually using the GUI and fixing a single match just for testing would reveal this kind of problem immediately)


:!: The --filter cannot help you in this case, because excluding all the bad shows doesn't really help you match the leap from S2003 to S01 that is required to match the correct episode. If you exclude all the bad shows, you'll just match some random wrong episode from the correct series.


:!: A --mapper could be used to take this particular use case into account:

Code: Select all

episode.derive(s - y + 1, e)

Code: Select all

$ filebot -rename *.mp4 --db TheTVDB -non-strict --action TEST --mapper "allOf{ episode }{ s > 1000 ? episode.derive(s - y + 1, e) : null }"
[TEST] from [MythBusters.1x01.mp4] to [MythBusters - 2003x01 - Jet Assisted Chevy.mp4]
:arrow: But at this point, we can just assume that the problem is pretty specific to MythBusters "Season vs Season Year" numbering, and so we can just process those exceptional files manually in the GUI or CLI, and leave it at that. Because it'll likely work for everything else by default.



EDIT 2:

New docs page for this particular mapper use case:
viewtopic.php?t=13032