[Rel] HTTP Anidb Metadata Agent (HAMA)

@chrno only Hama search in logs, no updates, no crash. I believe it’s not Hama related; do the plex dance

@chrno said:
@ZeroQI

Manually updated to latest version of the agent. Updated the scanner this morning. Using the code you requested me to test a couple of days ago seems to work fine. So not sure what causing the problem. Just seems to get stuck when trying to get metadata.

link to HAMA log
https://drive.google.com/open?id=0B0p08Avg8EvUQktmSllYMWJoZ0k

Same here, and looking at my own logs it looks like it’s getting the metadata, but not downloading any files or applying said data.

I downloaded new scanner but its the same like before… :frowning: now listing show again but not fetching metadata + poster

I dont know whats wrong actually, in plex activieties it says: loading metadata, but he never finishes idk

Maybe its some problem with AniDB?

I dont know much about code but the only error is:

2016-12-27 21:39:00,888 - com.plexapp.agents.hama (2048) : ERROR (model/_read:205) - Cannot read model from C:\Users\xxx\AppData\Local\Plex Media Server\Metadata\TV Shows\2\7cf6993d15e3486742739862ee57bcf5c5c07ea.bundle\Contents\com.plexapp.agents.hama

right?

here are logs again:

Thank you Zero.

@ZeroQI

Ive bounced Plex every time I make changes to the agents. Deleted and re-created the library multiple times. Dunno what else I can do. Using old code it works just fine without any issues, but the issue seems to only be present in the latest versions of Hama.

Otherwise I will just stick to the old code until it breaks as its currently working fine for me

edit: forgot to mention only experiencing this with anime (with latest code). Normal movies/series/music is working 100%

@chrno What’s the last version that’s working for you?

@Pyrii

the link in post 961. Its working still seems to do something a bit wonky where it will download all the metadata and then as soon as its done start to do it again. Does this a couple of times and then its business as usual. Here is the link below.

Tried version chrno is using, still same problem, strange… :frowning:

maybe some problem because those are hentais and not anime? x.x

@chrno said:
@Pyrii

the link in post 961. Its working still seems to do something a bit wonky where it will download all the metadata and then as soon as its done start to do it again. Does this a couple of times and then its business as usual. Here is the link below.

seasoned series w/ abs mapping map s2+ eps badly · ZeroQI/Hama.bundle@ab92eb7 · GitHub

Tada! it works!

(I made a folder of problematic Anime to test with)

@chrno thanks for that. Comparing the lines that changed and working from there. will update hama.

@Pyrii Weird is, same version give Pyrii issues while it works for me. here is a full refresh on same library on latest code from minutes ago

DELETE ME PLS

@IBNB said:
Tried version chrno is using, still same problem, strange… :frowning:

maybe some problem because those are hentais and not anime? x.x

You can get a copy of the repo at that time here: GitHub - ZeroQI/Hama.bundle at ab92eb755b9a453e93d5462dc458721d41178a30

@Pyrii i need to compare hama log for same agent version. please update and link to your hama log. everything works for me so it’s tricky to solve on my side

actually this does not work but thanks anyway @Pyrii

hentai seems not to be the problem tried to add Gurren Lagann, same problem

@ZeroQI said:
@Pyrii i need to compare hama log for same agent version. please update and link to your hama log. everything works for me so it’s tricky to solve on my side

Well ASS atm is deciding to act the same as the normal scanner and lump OP/EDs together and consider them specials. I’ll get some logs now.

@ZeroQI said:
@Pyrii i need to compare hama log for same agent version. please update and link to your hama log. everything works for me so it’s tricky to solve on my side

Here is using the version @chrno linked. I already posted my logs for the latest version earlier.

com.plexapp.agents.hama.log
com.plexapp.system.log
Plex Media Scanner (custom ASS) - filelist .log
Plex Media Scanner (custom ASS).log

@Pyrii said:

For the record:
Screenshot
com.plexapp.agents.hama.log
com.plexapp.system.log
Plex Media Scanner (custom ASS) - filelist .log
Plex Media Scanner (custom ASS).log

actually amsa agent is working… i dont understand it

thx anyway

solved a bug crashing the scanner if a custom mapping file was empty or with invalid xml tags. That should help.
I need new agent logs as prev log show no update function, might be linked to scanner issue


thank you for trying…

https://1drv.ms/u/s!Agyc-p0xRQFAoQ0UU2omBB5Ne6Gj

Okay here are my logs with the latest scanner/agent. Don’t know if it helps but I noticed on the latest version it doesnt resolve the series to the anidb id like it usually does (shows the anidb id behind the name in plex before it starts loading metadata)

https://drive.google.com/open?id=0B0p08Avg8EvUWHd2RFI5emtlU2s

  1. I stopped plex.
  2. Copied back the old code.
  3. Started Plex.
  4. Went to library and clicked “update library”.
  5. It started resolving the anidb ids and loading metadata instantly.

here is the link to the old code logs for comparison if needed.
https://drive.google.com/drive/folders/0B0p08Avg8EvUbUd4Uzk4dHB4dWs?usp=sharing