Bug Erroneous Match of Title Overriding First Match

It's a bug

gabewil

New member
Steps to Reproduce
Scrobble a title, incorrect match selected.

Offending title file name: [Judas] Gintama - (187).mkv, reproductable
Operating System
macOS
Application Version
3
Operating System Version
12
The fix I implemented will break season check, so I deleted the reply earlier. I added a check to see if it's the exact title. If so, it will ignore the season check. The season check was an issue since Zoku Sayonara Zetsubou Sensei is the second season and the video file name only detecting it as the first season. This normally won't be an issue for streaming.

Try now.
I seem to have found a new issue with the newest update. After correcting the incorrect scrobble nothing happens. The name of the file is '[Judas] Gintama - (187).mkv' and the show is Gintama (episode 187).

I've attached a video in case it helps: https://streamable.com/7ahmv9

and here are the logs:
[2/4/22 3:54 PM] Starting...
[2/4/22 3:54 PM] Check Exceptions List
[2/4/22 3:54 PM] =============
[2/4/22 3:54 PM] Scrobbling...
[2/4/22 3:54 PM] Check Account Information
[2/4/22 3:54 PM] Getting AniID
[2/4/22 3:54 PM] Searching For Title
[2/4/22 3:54 PM] Title is not a movie.
[2/4/22 3:54 PM] Valid Episode Count
[2/4/22 3:54 PM] Valid Episode Count
[2/4/22 3:54 PM] Found 1199
[2/4/22 3:54 PM] Checking 1199
[2/4/22 3:54 PM] Title not on list
[2/4/22 3:54 PM] Getting Additional Info
[2/4/22 3:54 PM] Updating Title
[2/4/22 3:54 PM] Scrobble Complete with Status Code: 3 - Confirm title
[2/4/22 3:54 PM] =============
[2/4/22 3:54 PM] Updating corrected title...
[2/4/22 3:54 PM] Check Exceptions List
[2/4/22 3:54 PM] Gintama
[2/4/22 3:54 PM] Gintama found on exceptions list as Gintama.
[2/4/22 3:54 PM] =============
[2/4/22 3:54 PM] Scrobbling...
[2/4/22 3:54 PM] Check Account Information
[2/4/22 3:54 PM] Getting AniID
[2/4/22 3:54 PM] Searching For Title
[2/4/22 3:54 PM] Title is not a movie.
[2/4/22 3:54 PM] Error: Couldn't find title Gintama. Please add an Anime Exception rule.
[2/4/22 3:54 PM] Scrobble Complete with Status Code: 51 - Title is not found.
[2/4/22 3:54 PM] =============
[2/4/22 3:55 PM] Starting...
[2/4/22 3:55 PM] Check Exceptions List
[2/4/22 3:55 PM] Gintama
[2/4/22 3:55 PM] Gintama found on exceptions list as Gintama.
[2/4/22 3:55 PM] Starting...
[2/4/22 3:55 PM] Check Exceptions List
[2/4/22 3:55 PM] Gintama
[2/4/22 3:55 PM] Gintama found on exceptions list as Gintama.

Also another minor bug I've found (that also existed before this recent update) is that when you do the correct title in the menu bar after scrobbling, it will scrobble the anime as Season 0. But if you manually add it using the Anime Title Exceptions it will scrobble it as Season 1.
 
Last edited by a moderator:

malupdaterosxdev

Administrator
Staff member
Apparently, the search algorithm is ignoring the first match it found and I made a fix. It's supposed to check two matches it finds and find the right one, but I was missing a condition that caused it to ignore the first match entirely. Nintama, which is the incorrect match has no total episodes number, which ignored the condition to store the second match for comparison and ignored the first match. Try this build and clear the title id cache in General Preferences before doing so.

As for the season glitch, Season 0 is basically treated as Season 1 since the season 0 is because it detected no season number from the filename. The preferences has this set as 1 by default if it couldn't find a season number in the file name. Try this build and see if this fixes the issue. I already confirmed that the fix works from using the video file name provided.
 

Attachments

  • Hachidori.zip
    5.5 MB · Views: 1

gabewil

New member
Apparently, the search algorithm is ignoring the first match it found and I made a fix. It's supposed to check two matches it finds and find the right one, but I was missing a condition that caused it to ignore the first match entirely. Nintama, which is the incorrect match has no total episodes number, which ignored the condition to store the second match for comparison and ignored the first match. Try this build and clear the title id cache in General Preferences before doing so.

As for the season glitch, Season 0 is basically treated as Season 1 since the season 0 is because it detected no season number from the filename. The preferences has this set as 1 by default if it couldn't find a season number in the file name. Try this build and see if this fixes the issue. I already confirmed that the fix works from using the video file name provided.
I tested this build on 3 different series I knew had the issue in the previous version and 2 of them worked perfectly. But for some reason, I'm having an issue with the 3rd file I tested.

The name of the file is '[Erai-raws] Nobunaga no Shinobi 04 [1080p].mkv'. Hachidori scrobbles it as 'Nobunaga no Shinobi: Ise Kanegasaki-hen' (the sequel), and when I try to correct it I get the Correction was not successful error.

Logs:
[2/5/22 11:31 AM] Starting...
[2/5/22 11:31 AM] Check Exceptions List
[2/5/22 11:31 AM] Checking Auto Exceptions
[2/5/22 11:31 AM] Checking Auto Exceptions
[2/5/22 11:32 AM] Auto Scrobble Stopped.
[2/5/22 11:32 AM] Updating corrected title...
[2/5/22 11:32 AM] Check Exceptions List
[2/5/22 11:32 AM] Nobunaga no Shinobi
[2/5/22 11:32 AM] Nobunaga no Shinobi found on exceptions list as Nobunaga no Shinobi.
[2/5/22 11:32 AM] =============
[2/5/22 11:32 AM] Scrobbling...
[2/5/22 11:32 AM] Check Account Information
[2/5/22 11:32 AM] Getting AniID
[2/5/22 11:32 AM] Searching For Title
[2/5/22 11:32 AM] Title is not a movie.
[2/5/22 11:32 AM] Error: Couldn't find title Nobunaga no Shinobi. Please add an Anime Exception rule.
[2/5/22 11:32 AM] Scrobble Complete with Status Code: 51 - Title is not found.
[2/5/22 11:32 AM] =============
[2/5/22 11:32 AM] Auto Scrobble Started.
 

gabewil

New member
I tested this build on 3 different series I knew had the issue in the previous version and 2 of them worked perfectly. But for some reason, I'm having an issue with the 3rd file I tested.

The name of the file is '[Erai-raws] Nobunaga no Shinobi 04 [1080p].mkv'. Hachidori scrobbles it as 'Nobunaga no Shinobi: Ise Kanegasaki-hen' (the sequel), and when I try to correct it I get the Correction was not successful error.

Logs:
Also had this issue with '[OZR] Attack on Titan S04E05 (BD 1080p HEVC FLAC) [Dual-Audio] [3DCAB41B].mkv'. Scrobbles it as AOT season 1, and has the error when I try to correct it. Guess the fix somehow reintroduced the season detection bug?
 

malupdaterosxdev

Administrator
Staff member
2022-02-05_12-21-26.png2022-02-05_12-24-24.png
Fixed the issue. Title recognition was bring matches despite not matching. Screenshot shows the title properly detecting without correction.
 

Attachments

  • Hachidori.zip
    5.5 MB · Views: 1
Solution
Top