Subtitle search by name choosing wrong while the right one exsist

Support for Windows users
Post Reply
appiekap653
Posts: 9
Joined: 13 Apr 2018, 17:04

Subtitle search by name choosing wrong while the right one exsist

Post by appiekap653 »

I downloaded the most recent amc script from github and changed the subtitle option to non-strict to let it also search by name.
It worked perfect but today I spotted some wierd behaviour.
I was adding a tv show called Boss Baby Back in Business and let it search for dutch subtitles.
I've checked Opensubtitles and for the 13 episodes it has subtitles for episode 1-7 and 9.

The release I have downloaded is:
The.Boss.Baby.Back.in.Business.S01.1080p.WEB.x264-AMRAP
The release and filenames on opensubtitles for the exsisting episodes are identical to the one I have downloaded.
Despite the identical names it has downloaded subtitles for 2 different shows.

Some episodes got Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt
and some got Boss.S01E03.HDTV.XviD-LOL.[VTV].srt

Code: Select all

Input: F:\Downloads\The.Boss.Baby.Back.in.Business.S01E08.1080p.WEB.x264-AMRAP[rarbg]\The.Boss.Baby.Back.in.Business.S01E08.1080p.WEB.x264-AMRAP.mkv
Group: [tvs:boss] => [The.Boss.Baby.Back.in.Business.S01E08.1080p.WEB.x264-AMRAP.mkv]
Get [Dutch] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles
Fetching [Dutch] subtitles [Revenge.S01E08.720p.WEB-DL.DD5.1.H.264-KiNGS.srt] from [OpenSubtitles]
Export [Revenge.S01E08.720p.WEB-DL.DD5.1.H.264-KiNGS.srt] as [SubRip / UTF-8]
Writing [Revenge.S01E08.720p.WEB-DL.DD5.1.H.264-KiNGS.srt] to [The.Boss.Baby.Back.in.Business.S01E08.1080p.WEB.x264-AMRAP.nld.srt]
When you look at the log file you see this part for the renaming:

Code: Select all

Rename episodes using [TheTVDB]
Auto-detected query: [Boss, the boss baby back in business]
Fetching episode data for [BOSS]
Fetching episode data for [Boss (2011)]
Fetching episode data for [Revenge]
Fetching episode data for [Bossip]
Fetching episode data for [Boss Nails]
Fetching episode data for [The Boss Baby: Back in Business]
After that the subtitles and episode files are renamed correctly to The Boss Baby: Back in Business.

How is it possible that it picks the right episode data for the renaming part but the wrong data for the subtitle part?

And how does it get from The.Boss.Baby.Back.in.Business to Revenge?
Its not even a bit alike
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitle search by name choosing wrong while the right one exsist

Post by rednoah »

No idea. The most likely cause is that FileBot didn't get the correct subtitles as an option in the first place, and thus picked the "next best" ones. There's a reason -non-strict is disabled by default for subtitle matching.

:idea: As you say, correct subtitles for S01E08 don't exist, and thus the "best" option is still a wrong option. Picking the "most likely" match is an intrinsic quality of -non-strict matching.

You could try to use the osdb.explain and maybe get some insight:

Code: Select all

filebot -script fn:osdb.explain /path/to/file -non-strict
:idea: Please read the FAQ and How to Request Help.
appiekap653
Posts: 9
Joined: 13 Apr 2018, 17:04

Re: Subtitle search by name choosing wrong while the right one exsist

Post by appiekap653 »

As you say, correct subtitles for S01E08 don't exist, and thus the "best" option is still a wrong option. Picking the "most likely" match is an intrinsic quality of -non-strict matching.
Its not only E08 which got a subtitle for Revenge its also episodes which had corresponding subtitles.

Code: Select all

Group: [tvs:boss] => [The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.mkv]
Get [Dutch] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Looking up subtitles by name via OpenSubtitles
Fetching [Dutch] subtitles [Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt] from [OpenSubtitles]
Export [Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt] as [SubRip / UTF-8]
Writing [Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt] to [The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.nld.srt]
Image

Is it Filebot code that does the "Picking the right one" or is it the Opensubtitles API code?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitle search by name choosing wrong while the right one exsist

Post by rednoah »

1.
Please run this command and post output:

Code: Select all

filebot -script fn:osdb.explain -non-strict The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.mkv

2.
Here's a thread on how hash / name search works:
viewtopic.php?f=3&t=2615

In non-strict mode, FileBot will try to retrieve a list of available subtitles, and the pick the one that matches best. Kinda like how you'd do it manually.
:idea: Please read the FAQ and How to Request Help.
appiekap653
Posts: 9
Joined: 13 Apr 2018, 17:04

Re: Subtitle search by name choosing wrong while the right one exsist

Post by appiekap653 »

Code: Select all

C:\Users\appie>filebot -script fn:osdb.explain -non-strict --lang nl "F:\Downloads\The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP[rarbg]\The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.mkv"
File: F:\Downloads\The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP[rarbg]\The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.mkv
Hash/Tag Lookup (hash: 1846507f4e1c27f0, size: 551024868, lang: nl_NL, tag: The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP)
Best Hash Match: null                                                                                                   Name Lookup (file: The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP, strict: false, lang: nl_NL)

Result 1: [IDSubtitle:6654463, IDSubtitleFile:1955234718, IDSubMovieFile:0, IDMovie:81690, IDMovieImdb:2004891, SubFileName:Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt, SubLastTS:00:42:27, SubFormat:srt, SubEncoding:CP1252, SubHash:04ef8dd93766a301e17636721e3939f0, SubSize:63648, MovieHash:0, MovieByteSize:0, MovieName:"Revenge" Trust, MovieNameEng:, MovieYear:2011, MovieReleaseName:Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:8.3, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1837642, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:2566717, UserRank:gold member, UserNickName:Ratedk, SubAddDate:2016-06-11 16:17:08, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:792, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6654463/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/revenge-trust-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19b30c56/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1955234718.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f55b0bbb/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/6654463]                                                                 

Result 2: [IDSubtitle:4985590, IDSubtitleFile:1953527821, IDSubMovieFile:0, IDMovie:83911, IDMovieImdb:1942198, SubFileName:Boss.S01E02.HDTV.XviD-LOL.[VTV].srt, SubLastTS:00:53:39, SubFormat:srt, SubEncoding:UTF-8, SubHash:bd81793acef0066c8c4b54b1f8897343, SubSize:62728, MovieHash:0, MovieByteSize:0, MovieName:"Boss" Reflex, MovieNameEng:, MovieYear:2011, MovieReleaseName:Boss.S01E02.HDTV.XviD-LOL.[VTV], MovieTimeMS:0, MovieFPS:0.000, MovieImdbRating:7.7, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1833285, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:0, UserRank:, UserNickName:, SubAddDate:2013-05-12 22:08:31, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:1332, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/4985590/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/boss-reflex-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19bc0c54/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1953527821.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f5780bc1/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/4985590]                                                                                                                 
Result 3: [IDSubtitle:5085952, IDSubtitleFile:1953627977, IDSubMovieFile:0, IDMovie:81690, IDMovieImdb:2004891, SubFileName:Revenge.S01E02.Trust.srt, SubLastTS:00:41:19, SubFormat:srt, SubEncoding:UTF-8, SubHash:a00706450fc82eebc2b29eb77299a66f, SubSize:42645, MovieHash:0, MovieByteSize:0, MovieName:"Revenge" Trust, MovieNameEng:, MovieYear:2011, MovieReleaseName:Revenge.S01E02.Trust, MovieTimeMS:0, MovieFPS:25.000, MovieImdbRating:8.3, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1837642, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:1038271, UserRank:, UserNickName:, SubAddDate:2013-07-13 18:39:30, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:2471, SubHearingImpaired:0, SubRating:0.0, SubHD:0, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/5085952/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/revenge-trust-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19d50c61/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1953627977.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f54f0bbb/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/5085952]    

Result 4: [IDSubtitle:4861879, IDSubtitleFile:1953389003, IDSubMovieFile:0, IDMovie:81690, IDMovieImdb:2004891, SubFileName:Revenge S01E02.srt, SubLastTS:00:42:04, SubFormat:srt, SubEncoding:CP1252, SubHash:08955e3222e4d43e54f39d3aa4849cb0, SubSize:62904, MovieHash:0, MovieByteSize:0, MovieName:"Revenge" Trust, MovieNameEng:, MovieYear:2011, MovieReleaseName:Revenge.S01E02.HDTV.XviD-LOL, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:8.3, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1837642, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:0, UserRank:, UserNickName:, SubAddDate:2013-03-05 19:29:52, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:7289, SubHearingImpaired:0, SubRating:7.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/4861879/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/revenge-trust-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19bc0c52/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1953389003.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f5660bc4/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/4861879]       

Result 5: [IDSubtitle:4599434, IDSubtitleFile:1953053759, IDSubMovieFile:0, IDMovie:81690, IDMovieImdb:2004891, SubFileName:Revenge S1 E2.srt, SubLastTS:00:42:16, SubFormat:srt, SubEncoding:UTF-8, SubHash:269453d3e4b9fb890ce11a87d53d7713, SubSize:82580, MovieHash:0, MovieByteSize:0, MovieName:"Revenge" Trust, MovieNameEng:, MovieYear:2011, MovieReleaseName:Revenge S1 E2, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:8.3, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1837642, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:0, UserRank:, UserNickName:, SubAddDate:2012-03-12 21:14:49, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:21630, SubHearingImpaired:0, SubRating:0.0, SubHD:0, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/4599434/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/revenge-trust-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19a80c58/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1953053759.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f56a0bbf/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/4599434]

Best Name Match: [IDSubtitle:6654463, IDSubtitleFile:1955234718, IDSubMovieFile:0, IDMovie:81690, IDMovieImdb:2004891, SubFileName:Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt, SubLastTS:00:42:27, SubFormat:srt, SubEncoding:CP1252, SubHash:04ef8dd93766a301e17636721e3939f0, SubSize:63648, MovieHash:0, MovieByteSize:0, MovieName:"Revenge" Trust, MovieNameEng:, MovieYear:2011, MovieReleaseName:Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB, MovieTimeMS:0, MovieFPS:23.976, MovieImdbRating:8.3, MovieKind:episode, SeriesSeason:1, SeriesEpisode:2, SeriesIMDBParent:1837642, SubLanguageID:dut, ISO639:nl, LanguageName:Dutch, UserID:2566717, UserRank:gold member, UserNickName:Ratedk, SubAddDate:2016-06-11 16:17:08, SubAuthorComment:, SubFeatured:0, SubComments:0, SubDownloadsCnt:792, SubHearingImpaired:0, SubRating:0.0, SubHD:1, SubBad:0, SubActualCD:1, SubSumCD:1, MatchedBy:imdbid, QueryNumber:0, SubtitlesLink:http://www.opensubtitles.org/en/subtitles/6654463/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/revenge-trust-nl, SubDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-19b30c56/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/file/1955234718.gz, ZipDownloadLink:https://dl.opensubtitles.org/en/download/src-api/vrf-f55b0bbb/sid-N2gcyYVz9Bvg8nJx,BYLOgpwiP0/sub/6654463]                                                          Done ?(?????)?  
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitle search by name choosing wrong while the right one exsist

Post by rednoah »

File:

Code: Select all

The.Boss.Baby.Back.in.Business.S01E02.1080p.WEB.x264-AMRAP.mkv
Option #1:

Code: Select all

Revenge.S01E02.720p.WEB-DL.DD5.1.H.264-TB.srt
Option #2:

Code: Select all

Boss.S01E02.HDTV.XviD-LOL.[VTV].srt
Both options look quite bad on first sight. There's a few extra similarities in the Option #1 (e.g. WEB, 264, etc) so that might be the reason it's coming out on top. Option #2 doesn't win because FileBot doesn't really know what to do with that either. Actually, is this even the correct match? I seems to refer to a different TV show.


TL;DR The correct subtitles aren't even listed in the list of subtitles that FileBot got back from OpenSubtitles, so it's unsurprising that it doesn't work at all. I'll have a look, but probably nothing I can do about that.
:idea: Please read the FAQ and How to Request Help.
appiekap653
Posts: 9
Joined: 13 Apr 2018, 17:04

Re: Subtitle search by name choosing wrong while the right one exsist

Post by appiekap653 »

do you have a maximum results when searching Opensubtitles or are you getting all results no matter how much there are?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Subtitle search by name choosing wrong while the right one exsist

Post by rednoah »

Nope, that's not it. There's just only a handful of results for whatever FileBot ended up searching for. The maximum number of results would be around 500 but that's not the issue here.

There's a good chance that "The Boss Baby" just isn't in the search index yet. If you give it a few days, weeks or months, depending on how popular the show becomes, and then it might work better.

You can use manual search in the GUI in the meanwhile. Once you have found and tested good subs, you can also upload them with FileBot so that future users will just get the exact match.
:idea: Please read the FAQ and How to Request Help.
Post Reply