[Rel] HTTP Anidb Metadata Agent (HAMA)

I don’t understand, if the scanner already parsed the absolute numbered episodes in the correct season number, can’t the agent cross refrence that and fetch the correct episode name?

And I’m using a naming convention that is tvdb. I use Sonarr and Filebot to fetch names from tvdb and Anidb.

Absolute numbering episode in season folder isn’t strict TVDB numbering.
The only agent that could handle this is Hama currently to my knowledge

You have a best practice that works that you don’t want to use, and i cannot break support for people following documented behaviour for somebody that doesn’t…

That’s what tvdb3 mode is for

  • for the scanner to remap if needed to the correct season and episode
  • for the agent to know the mapping so it gets the proper metadata

“If a series has a 12 eps first season and 24 eps second Season, then using absolute numbering, the agent can’t figure out if s02e13 is ep 13 or 25 using absolute numbering…”.

I gave you a concrete example why it breaks support for other serie
I gave an out saying I could support no tvdb id in the tvdb3.id file but you also are not interested, so that make my life easier.

The code is open source, feel free to recommend changes if it doesn’t impact other people

I’m not asking you to break support just for me, all I’m asking is a workaround to get the same functionality before the update. I tried going back to the old Hama but it doesn’t anymore.

Everyone has their own custom plex config, that is why we use custom agents and scanners. If there is no way around it, then it’s cool. Thanks for your support anyway.

Metadata has to be correct. We tightened checks.
Due to series with bigger number of eps in the next seasons it break this tvdb3 loophole.
I made the scanner to avoid renaming files and renaming folders at best or use force id files but there are limitations.
I could at best hack the tvdb3.id to not need the ID inside but you don’t seem interested.

I never said I’m not interested. I am actually. If it is not too much work.

Having issues getting a handful of series to match the specials/season 0 episodes on. Notably Neon Genesis Evangelion. Feel like there must be something I’m missing or doing wrong but I can’t figure out the issue. For example the End of Evangelion movie file is named “Specials\Neon Genesis Evangelion - S00E02 - The End of Evangelion.mkv”. Default Plex agent correctly matches and titles the entry as “The End of Evangelion” but Hama titles it “Genesis 0:0 - IN THE BEGINNING”. Meanwhile everything under Season 01 is correct and matching.

I’ve got similar issues with Kill La Kill, Re:Zero, and Girls Und Panzer. In each case the main seasons are all correct but the specials are completely wrong. It is also only for these couple of shows. Every other show with specials has the titles correct. I did notice that in the Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems\TheTVDB\json folder for Evangelion (70350) there was no file for the entry that isn’t matching (357968).

Neon Genesis Evangelion.agent-search.log (4.7 KB) Neon Genesis Evangelion.agent-update.log (180.9 KB)

Edit: Using [tvdb-70350] I can get the titles to match correctly. Is there a configuration issue on my end where this isn’t working by default?
Logs using above
Neon Genesis Evangelion.agent-search.log (1.7 KB) Neon Genesis Evangelion.agent-update.log (196.0 KB)

You seem to name it s00e02 using TheTVDB numbering but have no seasons so it used an anidb id to match and follow AniDB numbering for specials. If there is multiples seasons, it will know automatically it has to use tvdb numbering.

If you have a single season series and put tvdb numbered specials you need to force the tvdbid by editing the series folder or putting a tvdb.id file in series folder with the tvdbid

@ZeroQI https://1drv.ms/u/s!AgoCt_d4wCOOh6kQVbDm5S1FQkCZZQ?e=BmQOUn

.git folder intact and changes are not committed. Just run git diff or use a code editor to view the difference.

Experiencing some issues with some anime files incorrectly being named xxx [tvdb-01] and anime posters not using the ‘main’ poster from TVDB. I performed the troubleshooting steps, and despite clean installs and looking through the settings, the problems persist.

  • The anime showing xxx[tvdb-01] should be ‘A Silent Voice’. The file is named ‘A Silent Voice - 01 - Complete Movie.mkv’.

  • The anime without a poster and not being matched is Anti-Magic Academy 35th Test Platoon. I’ve tried to manually match through HAMA, but nothing appears. And when I manually match using TVDB, the correct option appears.

  • For the posters, animes like Charlotte, My Hero Academia, and others are not using the ‘main’ posters from TVDB. Perhaps I’m just misunderstanding how it works or my setting needs to be adapted, but the poster being displayed is different than the series poster shown on the TVDB website. Instead, it seems to either randomly or incorrectly prioritize another poster from the list.

  • A much smaller issue for me, but the collections option does not seem to be saving or is overlooked by the agent. I have the collections disabled and explicitly set collection to None in HAMA, but after initial build as well as rebuilds, collections still get created.

Thanks for any help.

_Logs.zip (8.9 MB)
PMS Plugin Logs.zip (2.9 MB)


I wanted to ask if there is a way for the agent to pull specific episode information the same way it does by adding anidb-xxxx to the file folder. I was specifically asking this in regards to Owarimonogatari season 2

So opening the folders I can confirm its downloading posters from anidb, but will not apply them to the seasons, I dont know why.

Hi, I’ve been trying for the last few hours of getting MyAnimeList ratings (1-10) on my anime instead of using AniDB, it will always return AniDB ratings after trying to use different combinations of settings.

I gave the MyAnimeList agent a quick go, and that returns MAL ratings (albeit as a percentage, and not a decimal value), but it uses an API that was developed by the author of the agent.

Are MAL ratings working on HamaTV? Or have I wasted most of the afternoon trying to get this working?

Thanks for all of your hardwork on this agent. It’s been working perfectly for the past couple of years that I have used it for.

Any way to disable downloading video thumbnails from not tvdb, their thumbnails are better than the ones that its defualting to.

Let me chime in here quick (as the developer of the MAL Agent).

As far as I can see in the sources on GitHub for the MyAnimeList class of HAMA is that it is severely outdated, at least the API endpoint is. My own API (that is used by HAMA) is dead for a really long time now.

You most definitely will not get anything from the MAL implementation through HAMA, at least not in its current form because of the outdated endpoint that doesn’t exist anymore.

@Goldfire86 MyAnime list hasn’t worked in a while, you would have known if you check the summary table at the end of the logs listing the sources that included that field… Yes you wasted most of the afternoon, sorry, but you cannot compare that with the time i passed removing bugs, took longer than writing the bloody code…

@ FribbtasticWill have to add support back from MyAnimeList for the Hentai lovers out there at some point, and convert percentage to decimal value for consistency, but once current bugs a

@Darkwolf1515 Ever looked at the agent settings? ‘thumbs’ is the field you mean and only TheTVDB provides it, so you may have asked the library to create them from the video files [https://support.plex.tv/articles/202197528-video-preview-thumbnails/]. For the poster, i could give you an answer if you did include the agent logs which you chose not to, so…

@guenherhuaraz_gmail_com It is not supported currently and no plan to do so.

@Montblac

  • Matching - This happens at scanner level if the title is only numbers as it takes it for a tvdbid, here it considered the title “01”. This is a scanner issue, i need scanner logs. You should custom search the series by hand, that would fix it…
  • Series poster - There is an algorythm to avoid poster duplicates if people use AniDB numbering otherwise all seasons and movies would carry the same poster.
  • Collections - "Prefs[collections ] = None " in your agent settings, which is why i can’t see a collection field set in the agent, so for me the setting is in the database already. Removing it in settings doesn’t remove it from the metadata…

@Fribbtastic Thanks for chiming in on that, that makes sense. I like the structure of AniDB, but the ratings are not all that great, which is where MAL would be great to come in.

@ZeroQI Sorry, but how was I supposed to know to check a specific summary table within a specific log without any of this information being posted anywhere?

I did quite a bit of searching on github and this thread before posting.

I was never attempting to compare that with the amount of work and effort you’ve put into this agent. I literally thanked you for all of your hard work at the end of the post. I’ll just assume you’ve had a long & tiring day.

Hiya, looking at your code as we speak

Yeah am a slightly grumpy f##k, you send a small spike, I send one, in good banter I believe until i saw your reply…

After quite a few gihub issues and forum entries where I am not given the series, the filename, put a screenshot showing how the user is impacted but nothing to reproduce, no logs, or agent logs but it’s the clear scanner issue or the other way around… Yeah that annoy me highly, more that it should logically to be fair…

However the file is listed in Hama github readme > troubleshooting steps > Logs > […]/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.hama/DataItems/_Logs/(Library_name/) series_root_folder.agent-update.log (metadata update)

All agent logs in agent data folders will at some points join the Plex Logs folder, where the ASS scanner logs reside already, as I believe it makes more sense there, close to the normal agent logs location, so it should avoid finding the custom series logs in the agent data folder which little agents uses…

After looking at said log, at the end, I do believe it need little introduction though, please do let me know if your opinion differs on that matter. it gives the order set in the agent settings, which sources provide it, whether it is in the metadata source order for that field or not, etc… that take away a lot of the guessing work…

I do accept pull request on things like the read-me and wiki, I just don’t have the drive to do it currently…

I saw you thanks and that you used it for 2 years and thank you for that, i do appreciate. Oh btw, am French, we complain about everything, especially me, don’t take it to heart…

Currently, including @Lightless code to enable back MyAnimeList, so i thank him greatly for that, would not have looked at that before months…

A while ago I saw, in a different Agent, the usage of @Expose on a function which, AFAIK, let you then call this function from a different Agent altogether.

Wouldn’t that be a better solution instead of you having to update your side of my Agent just to get Data from MyAnimeList? The user would then only need to have both of our Agents.

With the (hopefully soon) upcoming change in which I have to go back to the Official MyAnimeList API you would then have to do that again, with every bugfix and everything.

Any thoughts?

Yes, for search() it is brilliant, but i put the data in a dict to be processed at the end by the engine according to the metadata source order in the agent settings for each field so not doable for me i am afraid…

Yes any change will have to be done in both sadly…