[Rel] HTTP Anidb Metadata Agent (HAMA)

@clowncracker : please check the agent logs, it will tell you per episode the field, source order priority, source for each field.
Field is ‘thumbs’ so probably thetvdb. Anidb doesn’t have ep screenshots, only series poster.

@studyfranco

  • please let me know all fields added when you are done, will add them back to my scanner
  • The scanner recognise “02” and “oav 02” as episode 02. too many s02 in filenames so it skips it.
  • S02 should be special 02 so s00e02. OAV 02 is ep 2 and you have too many s02 in naming causing it to ignore it. Your naming is atrocious.
  • Agent logs? Troubleshooting steps AND files to include are in the readme. i need you to use BETA branch agent AND scanner and attach agent logs or i will give no support. Seem like you have no grouping support in current scanne you run
  • New point: follow tvdb or anidb numbering. Right now you should have seasons, specials and extras folders.
  • Films and OAVs folders should be considered grouping and rightfully ignored. since you have 2 seasons you use tvdb numbering. should the movie be specials ep 22 and 24 ? https://www.thetvdb.com/?tab=season&seriesid=79525&seasonid=26952&lid=7 If so name them s00e22 and s00e24 or SP22 and SP44 in title for numbering, at troot or in Specials folder

@ZeroQI

  • Now I use this new field : “vostfr”, “HEVC”, “VOSTFR”, “(Bonus inclus)”, “(BD 1920x1080)”, “10Bits-WKN”, “WKN”, “(Complet)”, “Despair-Paradise”, “Shanks@”, “Vostfr”, “[720p]”, “10Bits”, “(TV)”, “[DragonMax]”, “INTEGRALE”, “+”, “MKV”, “MULTI”, “DragonMax”, “Zone-Telechargement.Ws”, “Zone-Telechargement”
  • I give up this item. I have just create a folder. I have just lot of problem when I have DVD bonus.

  • This is a big problem. I think send a question on anidb if it possible to regroup anim by series. (And possibility to improve your code by search the serie on the folder name)
  • I have install your beta branch. I send the log to attach this one on post.
    I think I need to explain my architecture folder : Serie → group of anim → Season Or Arc → Episod.
    For exemple : Dragon ball → Dragon Ball Z → Arc → Episode another exemple Danganronpa → Dangaron 3 → Arc → Episode
  • It’s finally the same problem. I search a solution for this point.

The log files are here.

@studyfranco You cannot have season extras. they have to be in ‘Specials’ (or season 0) folder and properly named or in ‘Extras’ folder and they will be skipped. If you really want season extras and “2.5” ep numbering, please switch to Emby (former XBMC). You are not following specials naming practices

“This is a big problem”: No it’s really not. you can stream the episode and watch the bonus, just at the wrong place. Anybody else would have move these useless files (since even tvdb does not record dvd extras metadata) in an “Extras” folder at the same level as the seasons
“I think send a question on anidb if it possible to regroup anim by series.” AniDB.net already do that through related series and i use that in their series xml to create collections which can be used to display all related series.

Dragon ball -> Dragon Ball Z -> Arc -> Episode. That is a gouping folder (dragon ball)

  • if it doesn’t start with Arc but just finish with arc it will be not be considered an arc folder. I will amend it in next scanner version
  • Did you add dragon ball as additional root folder to your Plex anime library?

@ZeroQI

I follow your instruction.

  • Extras folder are created. But I have no result.
  • Specials folder are good. I follow the TVDB convention.
  • For Danganronpa And monogatari. I wiil follow AniDB convention. I create grouping folder.

I will come back. In january. Thank you !
Nice christmas !

@studyfranco Extras folders are ignored, but you put most dvd extras there as tvdb and anidb won’t generally list them unless it’s a special episode… Pics look good apart from Rosen Maiden 2013. that sould be a separate serie, even for thetvdb (but showing in french and dutch only for some reason https://www.thetvdb.com/?tab=series&id=271440&lid=17)

@ZeroQI

Hey, i am having issues with my Anime Movie folder not getting any poster updates.
I followed your guide and even updated to your latest master version. Everything works fine in my series (hamatv) but using Hama movies causes it to get all the metadata, movie name etc.
Is there something i am forgetting to fix the posters?

this is for all movies i have listed there, i just did a restart and did 1 movie to not have to much unneeded lines in the logs.

Otherwise great job with your plugin! It has been a real help to sort out my anime.

@T-Blade i can see no errors in logs and believe i already solved it in beta branch

@ZeroQI
So in other words, update to the beta branch? :slight_smile:
I will give it try and get back to you. Hope there are no real issues with using the beta though.

This is what it looks like atm

Look like it did not help, no posters or banners added again. Do you need any other logs?

former logs show “Neppuu Kairiku Bushi Road” having an anidb poster so if it’s not displayed you probably have an ad-aware software blocking all urls with “banner” in it for example…

you should now have a log per plex entry in agent data folders i would need that or hama general logs as the logging is per field and more complete. I need that to see what actually happens especially as i improved greatly hte logging in the beta branch

the D:\PlexData\Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Movies
is empty
I have the hama log however, did 2 times a refresh of metadata. 1 time as normal, another time with my antivirus disabled (just in case / only software that might block anything)

yeah latest agent beta branch seem to have logging issues for movies, need to amend the code, will do asap. Logging will be with seperate files for search update, scanner and filelist. Movie libraries get impacted a bit more empirically since i don’t use them myself, my apologies.

Has anyone ever switched the guid type of a series without losing the watch history of the episodes? For example, all my series are of type anidb, and has my collection has grown I’ve found it would be cleaner to use anidb2. But I don’t want to lose the watch history of myself and my friends. It seems like I should be able to do this using the “Fix Match…” option, similar to the Plex scanner. So I tried searching “Series [anidb2-xxxx]” and it indeed shows up with the anidb2 guid, but if I select it and do the same on its season 2, the serie stay separate. If I rename the directories, the two seasons join into one serie, but it is treated as a brand new serie. Has anyone had any success with this? Or have another method to try? I’d really like to not mess up my watch history if i can help it.Thanks.

https://support.plex.tv/articles/201154527-move-viewstate-ratings-from-one-install-to-another/
https://emby.media/community/index.php?/topic/21058-app-exportimport-watched-status-from-plex/

You will find no other agent where changing the guid make sense so since the read status seem guid specific and not file specific that’s a tricky one as if you change the guid you change the series from plex point of vue…

In theory an agent could back it up and restore so it could be coded…

I think it could work with the “Fix Match…” When you do fix match now, from anidb -> anidb2, it makes the guid in the DB:“anidb2-xxxx/1”, but when you add a fresh directory with “anidb2-xxxx” in the directory name the guid in the DB becomes “tvdb-xxxxx/”. I believe this behavior should be replicated with the Fix Match option.

@MiketheCalamity : Since the episode number and season change with tvdb2 , the scanner has to change it by downloading the mapping files and change the season and ep number accordingly then pass the information to the agent as if you had pick the right tvdb id and offset.
“Fix Match…” with “[anidb2-xxxx]” type of force is WRONG since the ep number and season was not translated by the scanner.

But you would have what is currently in the system for seasoon and episode number. And you know the current guid and ID of the series. So you would just need to look at the current guid and new guid and if it’s doing a switch between tvdb <-> anidb you would do a scudlee translation. No?

i cannot change the season and et number from the agent side.
when searching i may have access to the old GUID not when updating and not when refreshing so no.
It has to be at file level

Hi. I’d like to prefer MyAnimeList ratings over the Anidb, so I’ve overwritten my plugin with the beta release, restarted Plex, and in settings for every filed with ratings made “MyAnimeList” go first. Then I made a metadata refresh for one anime where I know both anidb and mal ratings and they are pretty different (~6 and ~7).

After the refresh it still shows what I suppose is anidb rating. In the logs I see that it receives both of those ratings (although both times saying that it’s ‘Source: AniDB’), shows correct sources priority, but still chooses (real) anidb rating over mal. Am I doing something wrong? Are there already any docs for beta branch to read about the features?

Also: is there any way to install the beta agent via WebTools UAS? I know we’re supposedly waiting for pre-releases support in their upcoming v3.1, but is there some temporary way to install without having access to the filesystem (would like to update on friends server)? Like, if I fork your beta branch, make a release of it and use my fork url in WebTools - theoretically, will it work?

Attaching my logs: