Incorrect matching of episode number (Tosh.0)

All your suggestions, requests and ideas for future development
Post Reply
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Incorrect matching of episode number (Tosh.0)

Post by darcnl »

This has occured with this show two weeks in a row now. It incorrectly renamed s07e17 to s07e03, and just today incorrectly renamed s07e18 to s07e08. Can't think of why this would happen. This is the script I am using in uTorrent 'run program when torrent finishes' box:

Code: Select all

"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --output "K:/" --log-file amc.log --action copy --conflict override -non-strict --def music=y --def clean=y subtitles=en artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
This is the section of amc.log that pertains to this file:
Run script [fn:amc] at [Wed Sep 09 01:59:47 NDT 2015]
Parameter: music = y
Parameter: clean = y
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_label = LABEL
Parameter: ut_state = 5
Parameter: ut_title = Tosh.0.S07E18.720p.HDTV.x264-DEFiNE
Parameter: ut_kind = %K
Parameter: ut_file =
Parameter: ut_dir = F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE
Read archive [tosh.0.s07e18.720p.hdtv.x264-define.rar] and extract to [F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE]
Extracting files [F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv]
Input: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.nfo
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r00
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r01
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r02
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r03
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r04
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r05
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r06
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r07
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r08
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r09
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.r10
Exclude: F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define.sfv
Group: [tvs:tosh 0] => [Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.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: [Tosh 0]
Fetching episode data for [Tosh.0]
[COPY] Rename [F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv] to [K:\TV Shows\Tosh.0\Season 07\Tosh.0 - S07E08 - RC Car.mkv]
Processed 1 files
Clean temporary extracted files
Delete F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv
Delete F:\TorrentDownloads\Tosh.0.S07E18.720p.HDTV.x264-DEFiNE\tosh.0.s07e18.720p.hdtv.x264-define
Done ヾ(@⌒ー⌒@)ノ
Thanks for any insight!
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrect matching of episode number (Tosh.0)

Post by rednoah »

1.
Looks like S07E18 didn't exist at the time.

Looks like somebody added the missing data in the meanwhile:

Code: Select all

Group: [tvs:tosh 0] => [Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Tosh 0]
Fetching episode data for [Tosh.0]
[DUPLICATE] Rename [Tosh.0.S07E18.720p.HDTV.x264-DEFiNE.mkv] to [TV Shows/Tosh.0/Season 07/Tosh.0 - S07E18 - Car Jump Kid.mkv]
2.
What does -non-strict do? Did you read Advanced Fine-Tuning yet?
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Incorrect matching of episode number (Tosh.0)

Post by darcnl »

1. I did consider that TheTVDB didn't have the show info, but whenever I went to check the site, it was there (but I guess it got added after). This would make the most sense.

2. I will be honest, I do not know what -non-strict does. I got the original script from your tutorial, then it has been slightly modified over the months to what it is now. I have read the advanced fine tuning section, but I do process more then just recent episodes - seasons of old shows, new/old movies, etc. Do you see a problem with my script?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrect matching of episode number (Tosh.0)

Post by rednoah »

There's no particular problem with your script. If you want to make sure that this issue can't happen again, then you need to remove -non-strict.

If you want FileBot to process all files and maybe get some of them wrong, then you want -non-strict.
If you want FileBot to not get anything wrong but maybe not process some of them, then you do not want -non-strict.

Of course, the more information you pass in via --filter and --def ut_label the less room for error there will be.
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Incorrect matching of episode number (Tosh.0)

Post by darcnl »

To be honest again, the --filter and --def ut_label confuses me. For example, I don't know what to add to those tags to help me with the issues I have with Tosh.0 and (also) with Fear the Walking Dead mislabeling as The Walking Dead (I do know reason for the issue with this from another thread, just don't know how to use those tags to help me).
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrect matching of episode number (Tosh.0)

Post by rednoah »

--def ut_label can (and should) be used to force series or movie mode.

--filter is used to eliminate bad matches. One simple and effective example is the age filter.

@see viewtopic.php?f=3&t=2127

e.g.

Code: Select all

--filter "age < 7 || !model.any{ it.age < 7 }"
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Incorrect matching of episode number (Tosh.0)

Post by darcnl »

Thank you for your help, Rednoah. I really like that code: --filter "age < 7 || !model.any{ it.age < 7 }" and have added it to my script. Thank you.

I cannot use --def ut_label however, because I use the script for both movies and TV.

And, if I use --filter "n != /The Walking Dead/" to stop Fear The Walking Dead from mislabeling to The Walking Dead, then when The Walking Dead starts up again, those will not match correctly. See my dilemma?
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrect matching of episode number (Tosh.0)

Post by rednoah »

That's why you get the best experience by labelling torrents (or rather have your RSS auto-downloader label them for you). That's a topic for another thread though. ;)
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Incorrect matching of episode number (Tosh.0)

Post by darcnl »

I tried my new script today, including both --filter "age < 7 || !model.any{ it.age < 7 }" and --filter "n != /The Walking Dead/". But I got this error in the amc.log:

CmdlineException: Processing multiple shows at once requires -non-strict

So I added the -non-strict tag back, and it processed the latest episode of FTWD correctly. This is my current script:
"C:\Program Files\FileBot\filebot.launcher.exe" -script fn:amc --output "K:/" --log-file amc.log --action copy --conflict override -non-strict --filter "age < 7 || !model.any{ it.age < 7 }" --filter "n != /The Walking Dead/" --def music=y --def clean=y subtitles=en artwork=n "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
User avatar
rednoah
The Source
Posts: 22991
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Incorrect matching of episode number (Tosh.0)

Post by rednoah »

You can't specify --options twice:

Code: Select all

--filter "age < 7 || !model.any{ it.age < 7 }" --filter "n != /The Walking Dead/"
I guess it's gonna be using the first or the last... certainly not both!
:idea: Please read the FAQ and How to Request Help.
darcnl
Posts: 12
Joined: 10 Jul 2015, 14:30

Re: Incorrect matching of episode number (Tosh.0)

Post by darcnl »

Thank you! I removed --filter "age < 7 || !model.any{ it.age < 7 }"

:)
Post Reply