[Rel] HTTP Anidb Metadata Agent (HAMA)

i see no file attached :confused:

That’s weird, I reattched it to this post.

My scan with this morning code:

Scanner call - root: '/volume1/downloads/_Plex_Current issues', path: 'B Gata H Kei/Season 1', dirs: '0', files: '24'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
misc: 'e01|e02|e03|e04|e05|e06|e07|e08|e09|e10|e11|e12|s01e01|s01e02|s01e03|s01e04|s01e05|s01e06|s01e07|s01e08|s01e09|s01e10|s01e11|s01e12'
misc_words: '()', misc_count: '{'e11': 1, 'e10': 1, 'e12': 1, 's01e12': 1, 's01e10': 1, 's01e11': 1, 'e08': 1, 'e09': 1, 'e06': 1, 'e07': 1, 'e04': 1, 'e05': 1, 'e02': 1, 'e03': 1, 'e01': 1, 's01e05': 1, 's01e04': 1, 's01e07': 1, 's01e06': 1, 's01e01': 1, 's01e03': 1, 's01e02': 1, 's01e09': 1, 's01e08': 1}'
"B Gata H Kei" s0001e001 "E01.mkv"
"B Gata H Kei" s0001e002 "E02.mkv"
"B Gata H Kei" s0001e003 "E03.mkv"
"B Gata H Kei" s0001e004 "E04.mkv"
"B Gata H Kei" s0001e005 "E05.mkv"
"B Gata H Kei" s0001e006 "E06.mkv"
"B Gata H Kei" s0001e007 "E07.mkv"
"B Gata H Kei" s0001e008 "E08.mkv"
"B Gata H Kei" s0001e009 "E09.mkv"
"B Gata H Kei" s0001e010 "E10.mkv"
"B Gata H Kei" s0001e011 "E11.mkv"
"B Gata H Kei" s0001e012 "E12.mkv"
"B Gata H Kei" s0001e001 "S01E01.mkv" "1"
"B Gata H Kei" s0001e002 "S01E02.mkv" "1"
"B Gata H Kei" s0001e003 "S01E03.mkv" "1"
"B Gata H Kei" s0001e004 "S01E04.mkv" "1"
"B Gata H Kei" s0001e005 "S01E05.mkv" "1"
"B Gata H Kei" s0001e006 "S01E06.mkv" "1"
"B Gata H Kei" s0001e007 "S01E07.mkv" "1"
"B Gata H Kei" s0001e008 "S01E08.mkv" "1"
"B Gata H Kei" s0001e009 "S01E09.mkv" "1"
"B Gata H Kei" s0001e010 "S01E10.mkv" "1"
"B Gata H Kei" s0001e011 "S01E11.mkv" "1"
"B Gata H Kei" s0001e012 "S01E12.mkv" "1"

Recreate the library, as per readme.
The scanner will not re-run since nothing changed in the folder:

Scanner call - root: 'D:\Casey\Videos\Anime', path: 'B Gata H Kei', dirs: '1', files: '0'
-------------------------------------------------------------------------------------------------------------------------------------------------------------

I have been using Hama + Absolute Scanner for over a year now and absolutely love it, it has been working flawlessly. About a week ago my old HDD finally broke down on my mini server and thus I had to reinstall everything with Plex all over. The thing I’m struggling to find now is that I used to have all seasonal anime episodes in the same folder called (Current Anime) and it would always separate them into different shows on Plex. I’m not sure what setting I used in past to achieve that, any tips where I should be looking? This is the result.

rtfm…
Edit, in clearer form, read the read-de, epcecially the install and troubleshooting section which list exactly the file to attach, none of which you followed through, so…

Hey all.

Not a complete Plex n00b here but…

I was running Plex media server on a windows machine for a couple of years. It worked great, sold me to buying the plex pass and I’ve been happy with it (Except for the Music section, total garbage). But that’s not a big deal, I love it for my movies and shows and such.

Not long ago, one of my drives broke and on top of that my media server was aging hard. So I built a new one. I ended up ditching Windows and going over to OpenMediaVault V3. So far it’s damn good, solid, quick and I’ve also set up a 12tb Raid (two 6tb Drives mirrored) so I don’t lose data so easily.

I’m adding stuff to the library and just now adding in some anime series (DBZ, Sailor Moon). I’m having massive issues with matching metadata and all. I’ve been looking around for a simple solution to add some agents but this post was the closes I could find. Now I’m not a coder, nor am I command line friendly at this point. How the hell do I add in these agents or are there other methods? I’ve got 5 sagas of Sailor Moon and it’s not matching all of them right. I’ve renamed them according (Folder: Sailor Moon (1992), etc etc etc) and each file under the folder is just the Title along with E01, E02, E03, etc etc in the file name. However even when doing manual matching I can’t find them, so I need a good anime agent.

Like I said, Plex is running as a plugin on OMV v3. I can WinCP into it to get to the root folder and find the Plex install folder and such, so any files I need to add (Github and so on) I can download from my Windows machine and then SSH/Shell into it through the web interface. I’m just confused with this post, is the 1st the most up to date directions to install this stuff? Is there a simpler break down? I don’t have time to go through 70+ pages of posts to see what to do and I don’t want to start messing with something in the 1st post if it’s not up to date.

Anyone else running Plex on OMV with Anime?

My agent is OS agnostic, so don’t need the machine pedigree.
See the read-me links in my signature. It includes the installation instruction, faq, troubleshooting steps…

I literally searched ā€œSailor Moon (1992)ā€ and got 3 pages of results [anidb.net/perl-bin/animedb.pl?show=search&do=fulltext&adb.search=Sailor+Moon+(1992)&entity.animetb=1&field.titles=1&h=0&do.fsearch=Search
], none of which use ā€œSailor Moon (1992)ā€ so you didn’t label your series as per AniDB.net (the first ā€œAā€ in HAMA = Http AniDB Metadata Agent) so you are a noob as any agent use the name for a precise metadata source, but you didn’t use anidb which my agent primarily relies on…

  • ā€œBishoujo Senshi Sailor Moonā€ or ā€œSailor Moonā€ are the proper titles for the original 1992 series…
  • ā€œSailor Moon [anidb-235]ā€ if 46 eps long to force the id (using ASS scanner, also in my signature)
  • ā€œSailor Moon [tvdb-78500]ā€ if about 120 eps long in 5 seasons to force the id (using ASS scanner, also in my signature)

Did you just say ā€œI need a good anime agentā€, on my agent thread ?
Please use thetvdb… It works decently for season numbered mainstream anime and will have fewer entries for sailor moon…
Please read the last 3 pages of a thread when you say you don’t want to read 70+…

Btw, if anyone hadn’t noticed and is following this thread, it looks like the 3rd party agent issue of downloading season posters has been fixed in v1.4.2. Yay!

Actually for plex members it’s out (1.3.4.3285-b46e0ea is the latest on https://www.plex.tv/downloads/)
https://www.reddit.com/r/PleX/comments/5vapqm/plex_media_server_142_is_now_available_for_plex/
(Metadata) Issues obtaining artwork from third party agents. (#6326)
season poster and ep thumbnail were impacted

I updated my Hama.bundle and now I’m getting this error when trying to scan new stuff in my Plex Media Scanner.log.

Mar 05, 2017 20:56:40.149 [0x7ffadf526700] INFO - /usr/lib/plexmediaserver/Plex Media Scanner --scan --refresh --section 34
Mar 05, 2017 20:56:58.231 [0x7ffad5fff700] ERROR - Error parsing content.
Mar 05, 2017 20:56:58.231 [0x7ffad5fff700] ERROR - Exception caught while attempting to match metadata on item 1508857: Error parsing file
Mar 05, 2017 20:56:58.231 [0x7ffad5fff700] ERROR - XML was (0 bytes):
Mar 05, 2017 20:56:58.777 [0x7ffad5fff700] ERROR - Error parsing content.
Mar 05, 2017 20:56:58.777 [0x7ffad5fff700] ERROR - Exception caught while attempting to match metadata on item 1508851: Error parsing file
Mar 05, 2017 20:56:58.777 [0x7ffad5fff700] ERROR - XML was (0 bytes):

Which XML file is it looking for?

Seem like a plex internal xml meta issue… any error in the agent logs or agent system logs ?

I figured out the issue, it was due to the text encoding of the anidb.id files.

Hi ZeroQI,

This looks awesome, but when i download the Hama.bundle-master.zip it does not contain the other zip files stated in the installation documentation, or am i missing something.

Kind Regards,
lthasenhod

Hello, I am new here. I am having an issue with the metadata agent. I do not think it’s the scanner. It only grabs the metadata for the first 5 series and then renames the rest to ā€œseries name [anidb-random#]ā€ I am not sure what I did wrong. Example attached.

@lthasenhod checked HAMA readme and it states:

`MANDATORY: Go into the agent data folder (ā€œPlug-In Support/Data/com.plexapp.agents.hama/DataItemsā€) and make sure the following folders are all created: (folders are included in Zip archive in release tab and nammed ā€œPlug-in.Support.zipā€, i recently added ā€œTVDB/episodesā€ and ā€œFanartTVā€ folder for TVDB screenshots).

@konachan Where are all logs mentioned in the readme troubleshooting section ? i am pretty sure i can’t be more explicit:

To avoid already solved issues, and make sure you do include all relevant logs in one go, please do the following:
    [...]
    including all the following logs: (location: https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files)
    [...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.hama.log (Agent logs)
    [...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.system.log (show why the agent cannot launch)
    [...]/Plex Media Server/Logs/Plex Media Scanner (custom ASS) - Library_name.log (episodes info)
    [...]/Plex Media Server/Logs/Plex Media Scanner (custom ASS).log (episodes info IF library name log doesn't exist)
    [...]/Plex Media Server/Logs/Plex Media Scanner (custom ASS) filelist.log (library file list)
    Screen capture to illustrate if needed. Above logs are still mandatory

Please tell me exactly what i should have written in the read-me to have people attach the logs on the first post because i just don’t know anymore… Are words like ā€˜mandatory’ and ā€˜needed’ too complicated ? Some people attach logs on the thread and i have links to both projects in my signature and you have to see the readme when you reach the github project page so i am at loss there…

@ZeroQI please I am very sorry. Please forgive me. I am new here. I provided the logs this time. I tried removing the first 5 to see what would happen and now it does not grab the metadata for anything at all. For some it even just changes the title to ā€œ[anidb-xxxxx]ā€.

@konachan That’s ok, but it happens quite a bit on the forums and i rewtote the readme to try to have all informations in one go, as i don’t know what to change in the readme, so i become intolerant…

You are banned for a day/hour on AniDB so you installed correctly at least :D.
Not an XML file, AniDB banned possibly, result: '<error>Banned</error>'
Try refreshing all metadata 24 hours at least after the error

Have beencoding the next version of HAMA for a while, logging will be better, only changed fields will be updated, better cache and no need to create Agent data folders so will be compatible with the unsupported appstore. full themes from televisiontunes.com, and better anidb ban protection, etc…

@ZeroQI thank you for your response. how do I avoid being banned? what decides how I get banned? is it random? other users I see don’t seem to have this, so why do I get it??

@konachan Banning is a form of flood protection that AniDB employ to protect their web servers, it essentially happens if they receive too many requests from your IP within a certain period of time (more than one every two seconds) or if you constantly request the same data in a 24 hour period; the Hama code is set up to abide to these rules but forcing a manual refresh will override those safeguards.

A ban will usually last anywhere between an hour and a day after which your then free to continue to use the service.

@ZeroQI @Dingmatt is has been 24 hours and refreshing still does nothing