Hama.bundle icon indicating copy to clipboard operation
Hama.bundle copied to clipboard

HamaTV not matching any more

Open kendrakirai opened this issue 2 months ago • 33 comments

I'm only getting 'No matches found' on manual match searches, or automatically, now, with the HamaTV. I can still force a match with directory naming {anidb-#####} and things will apparently continue to match once they are matched, but it's less than amazing.

Something's pretty clearly changed somewhere.

kendrakirai avatar Oct 01 '26 07:10 kendrakirai

I'm seeing something similar where I am experiencing "no matches found" on manual match searches (im not able to force a match though).

I wonder if it's tied to this issue ticket: https://github.com/ZeroQI/Hama.bundle/issues/610#issue-5692019610

IpodHero188 avatar Oct 12 '26 14:10 IpodHero188

That might actually be it, yeah, looking at it...

kendrakirai avatar Oct 13 '26 08:10 kendrakirai

Replace your old TheTVDBv2.py file with the new one found in Contents/Code/ and it should fix it. The repo has been updated since last week.

hyperactive68 avatar Oct 13 '26 08:10 hyperactive68

That got it! Thank you!

kendrakirai avatar Oct 13 '26 08:10 kendrakirai

3. Replace your old TheTVDBv2.py file with the new one found in Contents/Code/ and it should fix it. The repo has been updated since last week.

I did that over the weekend and still encounter no matches found. Checking the logs, I saw that there was an unauthorized error when the agent tried to use the TVDBV4 endpoint because the API key is missing for V4 in the code.

IpodHero188 avatar Oct 13 '26 12:10 IpodHero188

Remember permissions, and that you have to restart the Plex server. Otherwise it'll still have the original loaded.

I did that over the weekend and still encounter no matches found. Checking the logs, I saw that there was an unauthorized error when the agent tried to use the TVDBV4 endpoint because the API key is missing for V4 in the code.

kendrakirai avatar Oct 14 '26 02:10 kendrakirai

6. Remember permissions, and that you have to restart the Plex server. Otherwise it'll still have the original loaded. > > I did that over the weekend and still encounter no matches found. Checking the logs, I saw that there was an unauthorized error when the agent tried to use the TVDBV4 endpoint because the API key is missing for V4 in the code. >

I followed the instructions for the permissions from the README just in case, and still encountered the same issue. I am attaching a Hama log to show.

I really think that the fix in PR #610 will fix the problem until the owner adds the API Key for TVDB V4 into the codebase. I haven't tried to apply the fix to that PR yet, but that's my next move.

EDIT: I just applied the code change from PR #610 onto my local copy and that fixed the issue. So it is not a permissions issue, but the API Key that is missing for TVDBV4 endpoint within the init.py file.

com.plexapp.agents.hama.log

IpodHero188 avatar Oct 14 '26 02:10 IpodHero188

I'm getting the same issue ("No matches found"). I don't understand how to do the fix in #610. Can anybody help me, please?

kattara13 avatar Oct 23 '26 04:10 kattara13

8. I'm getting the same issue ("No matches found"). I don't understand how to do the fix in #610. Can anybody help me, please?

Just download the new zip and overwrite all the files with the new ones. The whole thing's been properly updated.

kendrakirai avatar Oct 23 '26 06:10 kendrakirai

    Just download the new zip and overwrite all the files with the new ones. The whole thing's been properly updated.

Thanks for the reply! I've done that, but am still getting the same issue. Any idea why?

kattara13 avatar Oct 24 '26 19:10 kattara13

 Thanks for the reply!  I've done that, but am still getting the same issue.  Any idea why?

Did you restart the plex server? Remember to rename hame.bundle-master to just hama.bundle?

kendrakirai avatar Oct 24 '26 23:10 kendrakirai

     Did you restart the plex server? Remember to rename `hame.bundle-master` to just `hama.bundle`?

Yeah, I've done both the restart and rename. It's able to match new/1st seasons, but not 2nd+ seasons.

kattara13 avatar Oct 24 '26 23:10 kattara13

12. > > Did you restart the plex server? Remember to rename `hame.bundle-master` to just `hama.bundle`? >

 Yeah, I've done both the restart and rename. It's able to match new/1st seasons, but not 2nd+ seasons.

I think that's one of the known downsides to anidb if I remember correctly. Have you tried the following: "anime_name_here [anidb-xxxxx]" as the anime folder name? Then you do a manual match in plex and it should show the japanese name for the anime. You click it and it should match it correctly.

This is a workaround and is tedious if you have multiple animes not able to auto match, but comes in handy when there's the occasional mismatch.

hyperactive68 avatar Oct 24 '26 23:10 hyperactive68

     I think that's one of the known downsides to anidb if I remember correctly. Have you tried the following: "anime_name_here [anidb-xxxxx]" as the anime folder name?  Then you do a manual match in plex and it should show the japanese name for the anime. You click it and it should match it correctly.
     This is a workaround and is tedious if you have multiple animes not able to auto match, but comes in handy when there's the occasional mismatch.

Thank you for this suggestion. I tried it, and it kinda works. It's finding the entry now, but not pulling the metadata. I guess I'll just manually edit it for now. It's just kind of weird that it just stopped working all of a sudden.

kattara13 avatar Oct 27 '26 19:10 kattara13

14. Thank you for this suggestion. I tried it, and it kinda works. It's finding the entry now, but not pulling the metadata. I guess I'll just manually edit it for now. It's just kind of weird that it just stopped working all of a sudden.

Strange that you're experiencing this. For me, I will predominately get TVDB results when I try a match now (after applying the fix from the PR I linked in an earlier post).

Not sure if this helps, but have you tried refreshing the Anime Series by itself and retrying? I think that might have happened to me once and I believe that fixed it.

IpodHero188 avatar Oct 27 '26 21:10 IpodHero188

     Strange that you're experiencing this. For me, I will predominately get TVDB results when I try a match now (after applying the fix from the PR I linked in an earlier post).
     Not sure if this helps, but have you tried refreshing the Anime Series by itself and retrying? I think that might have happened to me once and I believe that fixed it.

Yeah, I've tried that. Every 2nd season doesn't find a match. It's really weird.

kattara13 avatar Oct 27 '26 22:10 kattara13

How are things named? Because my stuff seems to be matching fine. This could be at least partially a naming issue.

kendrakirai avatar Oct 27 '26 23:10 kendrakirai

17. How are things named? Because my stuff seems to be matching fine. This could be at least partially a naming issue.

I haven't changed my file structure at all. It's named like how it's always been.

kattara13 avatar Oct 30 '26 02:10 kattara13

18. > 17. How are things named? Because my stuff seems to be matching fine. This could be at least partially a naming issue.

 I haven't changed my file structure at all.  It's named like how it's always been.

That's not what I asked.

How are things named?

kendrakirai avatar Oct 31 '26 05:10 kendrakirai

     That's not what I asked.
     How are things named?

Oh, I'm sorry! An example of a folder I have is:

Tensei Shitara Ken Deshita S2

  • Tensei Shitara Ken Deshita S2 - 01.mkv
  • Tensei Shitara Ken Deshita S2 - 02.mkv etc

I've tried renaming the folder to Tensei shitara Ken deshita II but it still doesn't find any matches. Doing a manual search produces the same error.

kattara13 avatar Oct 31 '26 08:10 kattara13