[Solved] Force match on specific shows

Running FileBot from the console, Groovy / FileBot scripting, shell scripts, etc
Post Reply
SonOfDiablo
Posts: 26
Joined: 11 Feb 2019, 10:11

[Solved] Force match on specific shows

Post by SonOfDiablo »

Greetings,

I'm using the CLI part of Filebot to rename episodes of different shows, however I have noticed that a few shows (namely Watchmen and the new Magnum P.I.) gets matched wrongly to either older or different shows and I have to rename them manually with the Filebot GUI.

Magnum P.I. gets matched with the original show "Magnum, P.I.", however I have found that adding 2018 between the show name and the season/episode number can fix this. Where as Watchmen gets matched with "Vekterne" which seems to be a Norwegian show about first responders or something along those lines, and I have yet to find a way to trick Filebot into matching it with Watchmen.

I was wondering if there was a way to force matches on these specific shows, while still allowing for automatic matching for other shows?

This is what I'm currently running to rename my episodes (%P%S is parameters from TotalCommander that just inserts the selected files and their full path):

Code: Select all

filebot -rename %P%S --db TheTVDB -non-strict --format "{n.upperInitial().space('.')}.{S00E00}.{t.upperInitial().space('.')}"
Last edited by SonOfDiablo on 25 Nov 2019, 16:02, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 19159
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Force match on specific shows

Post by rednoah »

The --filter option is your friend:
viewtopic.php?t=2127


Here's a thread on Watchmen specifically:
viewtopic.php?t=11179


:idea: --q may also be useful for more manual approaches, but probably doesn't lend itself well for your particular TC integration use case.
:idea: Please read the FAQ and How to Request Help.
SonOfDiablo
Posts: 26
Joined: 11 Feb 2019, 10:11

Re: Force match on specific shows

Post by SonOfDiablo »

The Filter option works like a charm! Thanks man! :D

Just, one more question.. It's not really a bit deal, just more of a curiosity:
When using a filter Filebot writes out all the inclusions like this

Code: Select all

Apply filter [!readLines('path/to/Filebot_Excludes.txt').contains(n)] on [1881] items
Include [Rick and Morty - 1x01 - Pilot]
Include [Rick and Morty - 1x02 - Lawnmower Dog]
Include [Rick and Morty - 1x03 - Anatomy Park]
Include [Rick and Morty - 1x04 - M. Night Shaym-Aliens!]
Include [Rick and Morty - 1x05 - Meeseeks and Destroy]
Include [Rick and Morty - 1x06 - Rick Potion #9]
Include [Rick and Morty - 1x07 - Raising Gazorpazorp]
Include [Rick and Morty - 1x08 - Rixty Minutes]
Include [Rick and Morty - 1x09 - Something Ricked This Way Comes]
Include [Rick and Morty - 1x10 - Close Rick-Counters of the Rick Kind]
Include [Rick and Morty - 1x11 - Ricksy Business]
Include [Rick and Morty - 2x01 - A Rickle in Time]
Include [Rick and Morty - 2x02 - Mortynight Run]
Include [Rick and Morty - 2x03 - Auto Erotic Assimilation]
Include [Rick and Morty - 2x04 - Total Rickall]
Include [Rick and Morty - 2x05 - Get Schwifty]
Include [Rick and Morty - 2x06 - The Ricks Must Be Crazy]
Include [Rick and Morty - 2x07 - Big Trouble in Little Sanchez]
Include [Rick and Morty - 2x08 - Interdimensional Cable 2: Tempting Fate]
Include [Rick and Morty - 2x09 - Look Who's Purging Now]
Include [Rick and Morty - 2x10 - The Wedding Squanchers]
Include [Rick and Morty - 3x01 - The Rickshank Rickdemption]
Include [Rick and Morty - 3x02 - Rickmancing the Stone]
Include [Rick and Morty - 3x03 - Pickle Rick]
Include [Rick and Morty - 3x04 - Vindicators 3: The Return of Worldender]
...
I was wondering if it's possible to stop that?
User avatar
rednoah
The Source
Posts: 19159
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Force match on specific shows

Post by rednoah »

You can use the --log option to reduce console output:

Code: Select all

--log FINE
:idea: Please read the FAQ and How to Request Help.
SonOfDiablo
Posts: 26
Joined: 11 Feb 2019, 10:11

Re: Force match on specific shows

Post by SonOfDiablo »

Exactly what I wanted!
Thanks rednoah! really appreciate the help! :D
Post Reply