[Rel] HTTP Anidb Metadata Agent (HAMA)

@mcrommert Well yeah check on thetvdb and add abs episode number and you will have proper seasons. I tried to make the logs readable. am working on collections and multiple anidb xml loading when tvdbid is used

@ZeroQI said:
@mcrommert Well yeah check on thetvdb and add abs episode number and you will have proper seasons. I tried to make the logs readable. am working on collections and multiple anidb xml loading when tvdbid is used

Well not quite sure why its referencing season 10 episode 49 as my episodes only go to season 5. The files are all absolute numbered. I have wondered since the american version (what tvdb follows) has two episodes missing (the banned episodes) if it is causing a disconnect on anidb and tvdb numbering.

Just for fun i tried normal anidb numbering - Everything works correctly but it says tvdb summary missing on each episode. I think this may be just the show i change to season numbering and run through tvdb

@mcrommert
new beta scanner doesn’t create Plex Media Scanner (custom ASS).log logs anymore…
new beta agent have more logs
Please make sure you use latest scanner AND agent, BETA branch on github…
i only keep latest code on my machine

https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/Beta/Scanners/Series/Absolute%20Series%20Scanner.py

tvdb s10e49 is abs ep 517
tvdb s10e47 is abs ep 516…
that’s why the agent has issues as well

Upgraded to beta scanner and agent - seeing same thing

When you talk about the issues the agent has with the file numbering…can i fix that? or should i look for another solution. Apologies for being dense about this, but i’m not completely caught up :slight_smile:

mistake downloading the website instead of file…ignore

@mcrommert I need logs to tell you what is happening with the numbering. i don’t see openings and the logging of this scanner version is atrocious.

Beta scanner readme: https://github.com/ZeroQI/Absolute-Series-Scanner/tree/Beta

Logs
Absolute series Scanner saves its custom logs in Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs... You may create a X-Plex-Token.id file in 'Plex Media Server' folder with your token inside to have logs saved per library. See this link to find your token value: https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token

If the scanner crash, you will get either no files (library creation) or no change (library already created) and will need to attach the Plex log "Plex Media Scanner.log"

Include the following logs (in any case, specify if file not present):

[...]/Plex Media Server/Logs/Plex Media Scanner.log (scanner crash info)
[...]/Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs...
You will find per-serie logs there with the following extensions:

root/root folder name.filelist.log - Scanner filelist and 'plexignore logs
root/root folder name.scanner.log - Scanner logs including: serie title season, episode number and preliminary title
root/root folder name.agent-search.log - Agent search, show the assignment to the right serie
root/root folder name.agent-update.log - Agent metadata update logs grom the guid assigned by the agent search function.

Please attach beta scanner logs. they end in *.scanner.log, this is main branch scanner logs.
It got created 2018-03-21 19:23:55’ and lastly updated 2018-03-23 00:20:23 so you are still running a old scanner code after i give you the direct link to the latest. It might crash for you (check Plex Media Scanner.log in normal plex logs folder), but if working it will create the files above in the agent data folders

Did you change the scanner in library settings to use the beta version scanner file in case you changed the filename ?

Once you are actually using the beta scanner and provide the beta scanner logs (root.scanner.log then every impacted folder at root logs like pokemon.scanner.log) i will be able to tell what is going on but most likely all will be working then

I pulled Pokemon from library - installed the beta version of the scanner and agent (absolute and hama)
Then I readded pokemon and let it scan
Attached are my logs after the scanning process completely ended

Pokemon looks the same as it did

@mcrommert That’s the right logs.
No errors in scanner but

  • error in the agent in recently changed code. i uploaded now a fix for that

  • thetvdb3 mode to insert seasons fails due to s10e49 that has absolute index ep 517 and s10e47 that has absolute index ep 516 and meanwhile s10e48 has none… That make hama go into safety mode and keeping 1 season only as documented. you could move manually eps into season folders in the meantime, giving it a tvdb4 tag…

    Library: ā€˜no valid X-Plex-Token.id’, root: ā€˜G:\Anime’, path: ā€˜Pokemon [tvdb3-76703]’, files: ā€˜148’, dirs: ā€˜0’, Plex scan date: 2018-03-23 09:47:38

    TVDB season mode (3) enabled, serie url: ā€˜http://thetvdb.com/api/A27AD9BE0DA63333/series/76703/all/en.xml’

different abs number found on ep (s10e49) after starting to manually place our own abs numbers. all episodes will be added as season 1.
-------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks for the help… i will probably go with the seasons built myself

@mcrommert it can work like it should BUT if AnimeLists use ā€˜a’ instead of seasons and the serie is mislabelled for the absolute index, then only fixing TheTVDB would fix it.
Are all other series working as they should?

@ZeroQI Yes all my other series work fine…still messing with collections support but thats looking good

Editing tvdb is often a huge undertaking if you can at all…will just group seasons and perhaps use normal agent and scanner

okay this has been bugging me, but How do you use the various modes in the scanner? In the readme you mention them,but I’m lost on how to actually use them. Clarification?

@Wisperer I just re-wrote that part of the Readme. Please let me know if still unclear:

You can specify the guid to use the following way:

  • In Series folder name by adding " [guid_type-id_number]" at the end (like ā€œOruchuban Ebichu [anidb-150]ā€)
  • In ā€œseries_folder/guid_type.idā€ file with the id in it (ex: ā€œOruchuban Ebichu/anidb.idā€ file with ā€œ150ā€ inside without double quotes)
  • In custom search series name by adding " [guid_type-id_number]" at the end (ex " [anidb-150]") for modes which do not change the season or episode numbers at scanner level (so anidb, tvdb and not numbered guid_types unless tvdb4 and you already put the eps in their respective seasons folders)

For about 1-2weeks now, for some reason it doesn’t download any pictures (poster, banner, background) anymore. It grabs all other metadata though. Do you know what could cause the issue? Updated both agents and scanners but no luck. IPv6 is disabled as I tried to google the issue to fix it.

(Metadata downloading including picture works for other agents and scanners)

Using latest beta branch for scanner and agents?
Did you follow the read-me troubleshooting steps?
If so, you forgot to attach the logs…

Little issue with my plex anime series library after a recent plex update (at least, i think the update broke it. I usually dont update plex because it tends to break things). I’m using the HAMA TV agent + Absolute Series Scanner. At least 50% of shows are being catalogued twice (for the exact same file locations). The show entry just contains a link to the normal season entry, but usually it catalogues it under the name of the show’s sequel or spinoff. Sometimes it keps the same name for the duplicate show entry if the sequel is also in the library but pulls the art for the sequel (WTF???). All my other libraries are fine. Pictures:

https://i.imgur.com/YmiXsqP.png (if you check the info, both have the same file locations)

Then after you open ā€œMade in Abyss 2 - 1 Showā€:
https://i.imgur.com/lqUeU7C.png (which is just a link back to Made in Abyss 1 - 1 Season, as shown in the previous image)

WTF is going on!?

IDK which logs are relevant so I just zipped all of %LOCALAPPDATA%\Plex Media Server\Logs.

@aew3 thanks for the proper post with logs attached, it is a rare enough occurrence…

In your screen capture, the poster on the right says ā€˜1 show’ under meaning that is a collection.

  • Just edit the library and select in drop down menu to hide collections or hide series while in a collection. i select to show collection only and hide items generally
  • You can hide seasons when only one is present also. I do that as movies in series libraries do not show seasons then.

Plex added that at the beginning of the year and quite like it to be honest, hiding series or seasons when un-needed and grouping dragon ball series or movies ad sereis together, especially since some related series have gekijouban in front and not grouped alphabetically…

Hi all, I just posted a new beta agent version with TheTVDB v2 api, and it should support other languages properly for episode titles. Please test and report any issues as usual.

Just migrated scanner beta branch to the master branch at last

I have very little free time left so while i still have some, i want to solve every possible remaining issue remaining. Left are to date:

  • tvdb4 season poster issue on One piece (OSX?)
  • anidb serie pointing to season 2 in tvdb gets season 1 eps metadata. COnversion tvdb to anidb done at wrong place seemingly
  • any other issue ?

Hi,

Sorry for vagueness of this question but, I just did the instructions for setting up HAMA and I see it as an option for Movies, but not for TV shows. Is there something obvious I am missing? If not I can just explain fully what I did. Absolute Scanner is set up and working though.

Also, what can I do about some shows where the title of the second season is technically a different name. I can still get P,ex to call it the second season but it doesn’t pull episode titles and such. Would setting up HAMA properly help resolve this or would this be a Scanner issue?