[Rel] HTTP Anidb Metadata Agent (HAMA)

I’m testing some things and the new alpha scanner definitely doesn’t like composite episodes.

Warning - show: ‘’, s01e001-002, file: ‘F:\Videos\Aquarion Evol - 01-02 - A Myth That Holds an End [1280x720] [gg].mkv’ has show empty, report logs to dev ASAP

Warning - show: ‘’, s01e001-002, file: ‘F:\Videos\Boku, Otaryman. - 01-02 - Me and the Rookie Me and the Boss Me and Games Me and People Skills Me and Household Chores (v2) [848x480] [Frostii].mkv’ has show empty, report logs to dev ASAP

Just as an example.

Also, it hiccups on some movies, apparently without much reason:

Warning - show: ‘’, s00e502-502, file: ‘F:\Videos\Scryed Alteration - Quan [1920x1080] [Final8].mkv’ has show empty, report logs to dev ASAP

Warning - show: ‘’, s00e503-503, file: ‘F:\Videos\Scryed Alteration - Tao [1920x1080] [Final8].mkv’ has show empty, report logs to dev ASAP

About 99% works fine. Didn’t found anything else.

@Vorador: well spotted, i could not locate the missing few files i had, i redid the main scanner loop using os.walk then using listdir and used absolute path instead of relative for “path” variable and forgot couple instances. Just uploaded alpha 3c version which restore relative path and removed absolute path variable that was un-needed and source look simpler. Please test again, should be the fastest to date. Due to Plex optimization, some files will still be missing until the library is re-created but should be faster than alpha 2 and hopefully replace the non alpha scanner

Can you test the Alpha 3c version, should be much faster…

Really sorry to say, but in my case speed is a bit worse compared to previous alpha, it takes almost two hours to scan 4037 files. Not a huge difference, but still, it’s there.

Now the composite chapters work. Just three movies still don’t work. No idea why.

2015-10-01 20:43:19 Warning - show: ‘’, s00e502-502, file: ‘F:\Videos\Scryed Alteration - Quan [1920x1080] [Final8].mkv’ has show empty, report logs to dev ASAP
2015-10-01 20:43:19 “” s0000e502 “Scryed Alteration - Quan [1920x1080] [Final8].mkv” “Scryed Alteration - Quan”
2015-10-01 20:43:21 Warning - show: ‘’, s00e503-503, file: ‘F:\Videos\Scryed Alteration - Tao [1920x1080] [Final8].mkv’ has show empty, report logs to dev ASAP
2015-10-01 20:43:21 “” s0000e503 “Scryed Alteration - Tao [1920x1080] [Final8].mkv” “Scryed Alteration - Tao”

Warning - show: ‘’, s00e504-504, file: ‘F:\Videos\Shin Gekijouban Initial D - Awakening [1920x1080] [CA].mkv’ has show empty, report logs to dev ASAP

And that’s it, everything else is fine.

@Vorador: it’s because it’s at root without episode number nor indication to know it is a movie. i have modified to have unknown files at root get serie name if a hyphen is there. I have fixed a full path to relative path for filelist received from scanner. I do not know the speed impact but in theory this implementation should be faster… weird. I did have to re-create the library at times for it to see again some files so could be worth seing if it still is slower, please test again. code cleaned up as well (343 lines). What version was faster that you are refering to? alpha 1 or 2 ? (3d right now)

I upgated the scanner alpha version (https://gist.github.com/ZeroQI/26d26f91af04c876b1a0) that does try to be faster and better use plex normal behaviour foregoing plexignore functionality.

Alpha 2, i think.

Let me test the latest.

No errors this time. Everything is scanned flawlessly.

I’m getting around 36 files per minute in a 4037 files folder. On a 900 files folder, 180 files per minute.

@Remnence said:
ZeroQI : Sorry I didn’t get back to you before. I’ve expanded my library so I decided to wait to do a complete re-scan. I used the latest GitHub and it’s still at around 99%. Hellsing and Maison Ikkouku are throwing it for a loop still and I can’t get the folder/anidb.id workaround to work properly as a said a few posts above.

I’ll try the 2nd one you just linked on my main machine instead of the NAS to make sure it’s not hardware. The first one you posted was cutting off the first few characters of the series when I tried it at lunch.

UPDATE: For some reason Windows 10 doesn’t like your scanner. It cuts off the first character of everything detected, no matter what version of the scanner I use.

UPDATE2: This is a Plex/Windows Share issue. Use full path instead of a mounted drive.

I realize this is quite old, but did you ever find a solution to this issue?

I just started using Hama combined with Absolute Series Scanner and this issue is really annoying. Took me ages to get everything working and now the series names are all missing the first character.

For example, Hajime no Ippo becomes ajime no Ippo. This happens for about 80% of the series, there is nothing difference about the folders that are not cut off that I can tell. Any advice would be appreciated.

Could you post custom scanner logs? With that i can check if scanner related

I just want to confirm that the latest version is the one released 4-11-2015?

No but can’t edit first post text without chopping half the length of it due to the new forum restrictions on post length. Also can’t put file in first post and another post…
https://forums.plex.tv/discussion/comment/1009167/#Comment_1009167
Take the zip archive here and update code.py from github. see github readme for infos

To make things simpler, i have added a agent folder package on github for the agent and a Logs folder package for the scanner. download github files then the complement package, this way all is downloadable latest versions on github

Hey sir. Thank you very much for the link. Unfotunately even with the latest versions I for some reason can’t get the HAMA scanner visible in the Agents part of my server. I’ve tried to delete the files and readd them, tried to delete the plex plugin and readd, nothing. Had it working a couple months ago… Go figure it’s giving me issues this time.

Please try to add another Plex agent. If it doesn’t work neither, then it is not an issue with my agent.
It only needs the agent files at the right place with the right rights to show the agent in Plex (even with required agent data folders missing). check Plex logs to see if any mention of the agent pops up

I tried the DVD Order Plugin and it showed first try without issue.

I checked the log and saw permissions issues. Fixed that, but now am getting this.

http://pastebin.com/tmCUm1xZ

It looks as though I may not have updated a file correctly? I thought I did everything correctly from the readme on the github.

You saved the HTML page of github showing you my html code and not the file itself despite a “raw” button being there on the page to show you the file as is and allowing you to save it to a file…
Nowhere in my agent code in file code.py line 4 i have the following string “”…

I… don’t even have words to describe how stupid I feel. I clicked save link as because I’m not used to github. It looked like it was downloading the file correctly.

Sorry for wasting your time. I feel stupid. I’ll fix it after I get back from work or when my laptop charges up a bit more.

Sorry again…

That worked, and I was able to see it on the server.

Again, sorry for my stupidity. Wasted your time for nothing.

Hey guys,
I seem to be having an issue having the agent download Posters for my files. I have downloaded what believe is the newest HAMA bundle, as well as the Absolute Scanner from GitHub. They both are selected and I have all the settings set correctly. I want to pull the posters from AniDB and not TheTVDB. Im not sure what else specifically i should be setting or if i have done something wrong.

You should be setting the agent settings for hama in plex by untick tvdb posters.

Hello,

I was previously able to quickly specify a manual match by putting ‘aid:1234’ into the Match/Fix Incorrect Match options. This doesn’t appear to work anymore :frowning:

I have just updated both ASS and HAMA and to be honest I have no idea what version I was running beforehand.

I was using the feature quite a bit and while I have noted the option to append the number to the folder, I was wondering what happened to this option? Even now, for example, after updating, 1 out of 12 new shows added failed to find a match, I presume because the naming convention used didn’t quite match the anidb title. When selecting ‘Match’ it returns a fairly long list of unrelated shows I have to search through.

I suppose I should just name my folders better rather than copy/pasting the title off the file :stuck_out_tongue:

Anyhow, thanks for the fantastic work Zero!

Format to force match changed to ‘title [anidb:xxxx]’ yeah the space in
front matters. You can also put the anidbid inside a anidb.id file is
series folder or Extras subfolder