[Rel] HTTP Anidb Metadata Agent (HAMA)

would be perfect

1 Like

Great. Please let me know when it’s ready to test

I noticed that trakt scrobbling for anidb guid items has stopped working a while ago, cause the match db that the plugin is using (based on anime-lists) is outdated. Some forks appeared recently, but it’s said to be a hassle to maintain those, not sure what will happen once the winter season comes.
So I was wondering, since you’re also using matches from the anime-lists that are up-to-date - is it possible for HAMA-created guid to contain multiple additional references? For them (tvdb, imdb, tmdb) to be scrobbled by the trakt plugin instead? For example, here’s how the new Plex Movie agent handles multiple guids: Native Plex Agents: Allow access to external provider ids for media (eg; IMDb, TMDb, TVDb) And the scrobbler was updated to support those, so I’m keeping my hopes up with anime scrobbling and looking for possible future-proof solutions.

If this is not possible or requires an overhaul, maybe the agent could possibly be configured to match tvdb and imdb/tmdb guid by default instead? Is it possible to automate without adding ids to folders?

Also on the subject of MAL review scores, I was thinking of how I then would need to keep refreshing the metadata to have them up to date for ongoings. And then I found this tool https://github.com/mynttt/UpdateTool I hope one day they could support HAMA agent too. I could try requesting it there once I have the reviews functioning.

Sometimes this happens and I’m not sure why, I checked the Hama Github issues list for similiar issues but either it’s unique to me or I must’ve searched for the wrong terms.

The issue is as in the gif; sometimes when selecting posters/background/banner it just removes the banner and background, and it’s not even clear on when they want to decide to return.

Any ideas?

First time posting in this thread, took me a little while to figure it out. Once I did, it was pretty cool to be able to keep all my movies & episodes in one library.

That being said, I’m having an issue where some movies are not being recognized in my ā€œAnimeā€ library. The ā€œAnimeā€ library is able to recognize most of the movies/tv shows that I have there. I do have another library for movies. If I were to move the anime movies that are not being recognized into the ā€œMovieā€ library, they get recognized and tagged.

Any recommendations on why that is

Now that you will have to pay to access TheTVDB, how will you go on with the project?

For the cost of a McDonalds extra value meal, this annual subscription is pretty cheap. Works out to be $1 a month.

Having issues getting Hama to work on Windows 10. I’ve followed the instructions from GitHub and find myself at a dead end and don’t understand how to get the plugin to run properly.

Having created the Scanner and Series folder, I’ve placed the absolute series scanner.py file as instructed…however, what do I do with the extra files, that come downloaded with the scanner?

ā€˜C:\Username\AppData\Local\Plex Media Server\Scanners\Series’

I’ve also renamed and extracted the ā€˜Hama.bundle’ file here below

C:\Username\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle

Ultimately I need to know exactly where the ā€˜absolute scanner’ and ā€˜Hama.bundle’ have to go within the plex media server directory, including all the other files that come with it, as I see no instructions on what to do with those files…

What is the next step? Because at the moment neither the Scanner nor Hama agent is loading. I am using the latest Plex update 1.21.1.3830.

@tashfinz
Path seem right for series scanner and agent

  • Right issue on the folder/files?
  • try another scanner and agent install

@zo1d in 6 months, will have to ensure TheMovieDb series functional I guess. You could have included link and timeframe, as editing on a phone posts is super annoying https://amp.reddit.com/r/kodi/comments/ju3t61/thetvdb_going_paid_subscription_now_what/

@rexa11 You probably didn’t follow naming convention like naming the movie file the same as the folder appart from the extension…

@enchained guid format is complex but thetvdbid alone supported as forceid. I think the cobbler need to support Hama GUIDs cannot change formats without impacting users.

@soitora My agent provided the pictures, if Plex cannot activate a present picture, your database is likely corrupted…

1 Like

@ZeroQI
So I have been having issues with shows matching. I am going to post all the logs I have for Attack on Titan but in the screenshot you can see it’s more than a few shows. I am on the most current version of Hama/ASS.

I have also replicated this on a separate server/fresh install and it does the same things with the same shows.

Any insight on what is going on or what is causing this?

Anything else you need let me know.

I also did this to make sure:

  • delete the library
  • stop plex
  • Update to the latest Absolute Series Scanner (master branch), Hama (Master branch) and Plex
  • deleting all Plex logs leaving folders intact
  • restart Plex
  • re-create the library

This is what it looks like.

These are my settings.

com.plexapp.agents.hama.log (911.4 KB)

com.plexapp.system.log (76.0 KB)

Attack on Titan (2013).agent-search.log (2.4 KB)

These logs do not exist inside the folder:
agent-update.log
scanner.log
filelist.log

@visoseph since you have multiple SEASONS This series, it uses TheTVDB for matching, its title is ā€˜Attack on Titan’ on TheTVDB, not ā€˜Attack on Titan (2013)’ so you reach 78 score which is short of 80 so cannot be automatically assigned.

You have to match the title on the metadata source (AniDB if single season or TheTVDB otherwise), or use a forced id in the series folder or a tvdb.id file with the tvdbid inside…

Alright then I just added the TVDB ID onto it and that has helped so, would prefer not to remove the year so this will have to do. Thanks a bunch for the quick response.

That’s understandable, thanks for the reply.
Looks like for now, if I want to trakt-scrobble, I either need to use the TVDB agent matching, or to provide HAMA with [tvdb-id] in manual matching/folder name/file with id?
I prefer HAMA for the additional metadata and movies support, and I’m already using tvdb file order cause of sonarr, so I was wondering if instead of manually adding tvdb-ids one by one it’s posible to default HAMA auto-matching to tvdb1 even for single season shows? Is there some setting for that already, or is it something easily implementable?

Also I always try to add everything that aired in the season into a separate plex collection, like ā€œWinter 2021ā€. MAL has that field under ā€œPremieredā€, not sure about other sources. Is that something that HAMA already fetching and if not, is it possible to implement?

TVDB agent matching will use thetvdb as GUID, so will work
Hama agent with force tvdb id will use a more complex format so trakt-scrobble will need to support it.

Hama is auto-matching on TheTVDB IF there is more than one season on disk
You really want to use Thetvdb agent for compatibility with Trakt that expect Thetvdb ID as GUID…
Even if matching to TheTVDB, the GUID won’t be compatible, but that is easy for TRAKT to add the format, at least for the ones using TVDB matching (more than one season OR force tvdb id)

I made a MAL branch so make it work again and still not tested and will not test it, so no further MAL code for now…

I’m not the smartest at this but I’ve tried to duplicate hama so I could have 2 agents with different settings without any luck. I’ve tried to figure out how to get Hama to fill into the original title, It seems to be able to do it for movies, but also not how I want it to do so. I’m basically trying to get the first hama to use the TVDB name and have the original title as the main anidb name ( instead of kanji.) and Second Hama to be basically normal settings.

How can I make hama get ratings from myanimelist?

I’ve some similar issues with my project, and I can say that this thread really helps me to solve my problems, as there are some hints that I’ve never thought about.

Just use sort title as second field since plex never fixed original title

Ratings from myanimelist? Dude I support AniDB TheTVDB TMDb Omdb, that’s enough… You’re on your own…

I have a question, I have only 1 anime title. Usually it has an english title for the episodes.
Now, I noticed this week that all the episodes was changed to Romanji instead.

I haven’t change any of the settings, can anyone tell me which settings should I change to have episodes title back to english?

thank you.

Check agent settings specially language and source, check custom series log in agent data folders, the answer is at the end to know which metadata source provided the title, then nighter to that metadata source logs.