There are a few TV shows that I have that consistently match incorrectly. For example, "Into the Dark" files are matched by "Dark" 100% of the time. Is there a reasonably easy way to prevent this in my script? I know it's probably information already in this forum, but I wasn't able to piece it together. It's automated with RSS and filebot script executed by deluge, so by the time I see something has downloaded, the scripts have already picked it up and propagated it across to all its destination directory and sync partners. A second example is that "The Chilling Adventures of Sabrina" is matched with "The Adventures of Spot".
Input: /torrents/data/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv
Group: [tvs:dark] => [into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv]
Get [English] subtitles for 1 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [DARK, into the dark 2018]
Fetching episode data for [DARK]
Fetching episode data for [Ark]
Fetching episode data for [Dark Net]
Fetching episode data for [Darkroom]
Fetching episode data for [Dark Side]
Fetching episode data for [Into the West]
Fetching episode data for [In The Dark]
Fetching episode data for [Shot in the Dark]
[COPY] From [/torrents/data/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv] to [/media/New/TV Shows/DARK/Season 01/DARK - S01E08 - As You Sow, so You Shall Reap.mkv]
Processed 1 files
Done
I'd look into the --filter option. There are many conceivable --filter approaches, and depending on your exact use case some will work better than others.
The amc manual includes one possible approach that should work fairly well for the majority of use cases.
Note that the correct series option isn't listed in the log at all. Maybe it's listed with a different name on TheTVDB?
So I'm guessing because we don't want to include the search terms "into" and "the" most of the time, it drops those two words? Then when searching DARK, it just doesn't come up.
I'm not sure it would be a job for filters then; would there be a way to say: if [filename]==*into.the.dark* then make the search term the TVDB ID(347115), or "INTO THE DARK"?
Input: into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv
Group: [Series:true] => [into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Into the Dark 2018]
Fetching episode data for [Into the Dark]
[TEST] from [into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv] to [TV Shows/Into the Dark/Season 01/Into the Dark - S01E08 - All That We Destroy.mkv]
Processed 1 files
3.
timmotee wrote: ↑13 May 2019, 07:21
would there be a way to say: if [filename]==*into.the.dark* then make the search term the TVDB ID(347115), or "INTO THE DARK"?
AFAIK, there's no way to hook into FileBot on that level at runtime. Adding *.nfo files with TheTVDB ID or adding xattr with TheTVDB ID could be done as a separate pre-processing step though.
Input: /torrents/data/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv
Group: [tvs:dark] => [into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv]
Get [English] subtitles for 1 files
CmdlineException: OpenSubtitles: Please enter your login details by calling `filebot -script fn:configure`
Rename episodes using [TheTVDB]
Auto-detected query: [DARK, into the dark 2018]
Fetching episode data for [DARK]
Fetching episode data for [Ark]
Fetching episode data for [Dark Net]
Fetching episode data for [Darkroom]
Fetching episode data for [Dark Myth]
Fetching episode data for [Into the West]
Fetching episode data for [In The Dark]
Fetching episode data for [Shot in the Dark]
[COPY] From [/torrents/data/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv] to [/media/New/TV Shows/DARK/Season 01/DARK - S01E08 - As You Sow, so You Shall Reap.mkv]
Processed 1 files
filebot -script fn:amc INPUT --action COPY --output OUTPUT --def minFileSize=0 -non-strict
Run script [fn:amc] at [Tue May 28 11:46:06 ICT 2019]
Parameter: minFileSize = 0
Argument[0]: INPUT
Input: INPUT/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv
Group: [Series:into the dark 2018] => [into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Into the Dark 2018]
Fetching episode data for [Into the Dark]
[COPY] from [INPUT/Into.The.Dark.2018.S01E08.All.That.We.Destroy.WEBRip.x264-TBS[ettv]/into.the.dark.2018.s01e08.all.that.we.destroy.webrip.x264-tbs[ettv].mkv] to [OUTPUT/TV Shows/Into the Dark/Season 01/Into the Dark - S01E08 - All That We Destroy.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Just a last update; you were correct in your last message - there was two versions of filebot on the same server. It is now working happily and matching the same way you are showing in your examples. Thanks for the help