[Rel] HTTP Anidb Metadata Agent (HAMA)

ok i have to change agent to tvdb instead of hama when using fix match for the titles to pull their English titles i think the beta is still forcing to the anidb listings possibly ? because al my folder have the guidid of tvdb in the folder name

@rightcode yeah i know just giving feedback only started with the beta

You changed the language preference from what I gathered in the settings for both title sections? Mine was pulling Japanese titles until I moved ‘en’ to the front for both instances. Then it went away. It’s possible you could delete your anime library all together and then try to reinitialize?

I’m also cannot get the agent show but on Windows 10 (x64) at all.
Plex server version: 1.5.5.3634
All done in accordance to instraction from GitHub except logs

P.s
Just tried Plex Anime Multi Source Agent (AMSA) - and it’s works fine.

right issue or you didn’t label folders coorrectly most likelly. the log com.plexapp.system.log would tell us why most likelly


@ZeroQI said:
right issue or you didn’t label folders coorrectly most likelly. the log com.plexapp.system.log would tell us why most likelly


Thanks, this waht i found in logs for HAMA :

CRITICAL (core:574) - Exception reading file C:\Users nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py”, line 55, in load
f = open(filename, mode)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py”, line 70, in builtins_open
return builtins[‘_open’](longpathify(uni(filename)), mode, buffering)
IOError: [Errno 2] No such file or directory: u’\\?\C:\Users\ nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist’

2017-04-22 14:20:07,802 (19e4) : CRITICAL (core:574) - Exception adding bundle: Hama.bundle (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 128, in update_bundles
bundle = BundleInfo(self.system, path, plugin)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 18, in init
self.load_plist()
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 22, in load_plist
plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, “Contents”, “Info.plist”)))
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 32, in ObjectFromString
check_size(string, max_size)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 22, in check_size
if len(data) > max_size:
TypeError: object of type ‘NoneType’ has no len()

2017-04-22 14:20:07,805 (57c) : DEBUG (logkit:13) - Started the media flag service
2017-04-22 14:20:07,805 (361c) : CRITICAL (core:574) - Exception reading file C:\Users nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\storage.py”, line 55, in load
f = open(filename, mode)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\subsystem\ospathfix.py”, line 70, in builtins_open
return builtins[‘_open’](longpathify(uni(filename)), mode, buffering)
IOError: [Errno 2] No such file or directory: u’\\?\C:\Users\ nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist’

2017-04-22 14:20:07,806 (361c) : CRITICAL (core:574) - Exception adding bundle: Hama.bundle (most recent call last):
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 128, in update_bundles
bundle = BundleInfo(self.system, path, plugin)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 18, in init
self.load_plist()
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\System.bundle\Contents\Code\bundleservice.py”, line 22, in load_plist
plist = Plist.ObjectFromString(Core.storage.load(Core.storage.join_path(self.path, “Contents”, “Info.plist”)))
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 32, in ObjectFromString
check_size(string, max_size)
File “C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-995f1dead\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\parsekit.py”, line 22, in check_size
if len(data) > max_size:
TypeError: object of type ‘NoneType’ has no len()

File C:\Users nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist’ doesn’t exist
 But Hama.bundle does
Please tell me Hama.bundle is a folder and not the zip file renamed


@ZeroQI said:
File C:\Users nevi\AppData\Local\Plex Media Server\Plug-ins\Hama.bundle\Contents\Info.plist’ doesn’t exist
 But Hama.bundle does
Please tell me Hama.bundle is a folder and not the zip file renamed


Sure Hama is folder, but thenks to you i’ve found a solution.
I’ve set full permissions (RMB->properties → security) for all users to file Info.plist and all hama folder (don’t really cnow what was the fix - full folder or just this one file) but after that and restart of PC - HAMA agent become avalible!

**Huge thanks for your help! **

P/s
May be it was coused becose i have several users on my PC with diferent access policy.

Hi, brand new to plex, mostly using it to organize my anime library. I’m having an issue with HAMA where it won’t use the en titles for series and only uses the main title.

despite the setting being set to en, I can’t get it to prefer the english titles (for example it won’t let the Ghost in the Shell series be that, instead it loads it as Koukaku Kidoutai)

I know I can just manually edit the titles but I’d rather not have to do that for the majority of shows, and only for exceptions.

Thanks in advance!


ok using beta deleted library and re added it as the pic shows its scans in the guid i have in brackets it however worked on bleach DBS and My Hero , Boruto has no forceid but gets that attached to its name. attached logs. hope thye can help

Yesterday i updated HAMA and AAS but now i cannot downloading metadata.
Could you please look where is problem ? :frowning:

Btw: i think user @dkenpachi has same problem as me. In log is message about "

Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token
"

The HAMA read-me states "If all video files are showing in plex at the right season and episode number, the ASS scanner did its job." (source: https://github.com/ZeroQI/Hama.bundle/blob/master/README.md).

It seems only the metadata is impacted, therefore an agent issue.
i need the agent logs (the FIRST logs listed in the read-me troubleshooting section):

  • [
]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.agents.hama.log (Agent logs)

Thar information message is explicit
 if you don’t put the X-Plex-Token.id file in logs folder, you won’t have a log per library


do you have an ETA on your next update of HAMA?

Problem was on me side, i re-download again Hama + ASS and everythings works fine.

@lekarnicka beta updates are out check the repo

using latest beta still pulls ep title as japanese and ignores the tvdb guid

NOTE TO ALL:

  • newest beta version (after Hama.bundle.2017-05-02.01h37.zip) did major housecleaning in agent data folder so delete it or mode files to the appropriate place (json or xml subfolder, artwork or poster subfolder)
  • aligned the folder name on the source module name.
  • Logging changed dramatically. now scanner and agent logs are in a log PER SERIES in agent data folder > Logs> Series and it shows sequentially the scanner logs, the search and hte agent logs with no crap in it, is wiped at each re-scan so it doesn’t grow too big
    Older Beta improvement
  • missing episode files html report now accurate at all times
  • televisiontunes.com full mp3 theme support
  • priority selection per meta field in agent settings
    As soon as all the bugs are smoothed out, it will replace ucrrent source code on github, in the meantime i post the new version here:
    https://github.com/ZeroQI/Hama.bundle/releases

@ZeroQI deleted agent folder and added a force id file inside each series folder this seems to work now for some reason the logs show it wasnt seeing it when it was in folder name with this beta , should be apart of the logs i posted before which ic deleted now but will send you logs again if i run into any problems

@ZeroQI I am going to try Hama.bundle.2017-05-10.14h35.zip on a new library.

So if I’m reading this right I don’t have to make Plug-in Support/Data/com.plexapp.agents.hama/DataItems/AniDB folders anymore? They will be automatically created when I start a new scan?

Hi, i was wondering how I might change the anime them song? Some of them are really bad quality. I would be way more comfortable. Just pulling a mp3 off YouTube. Then editing with audacity and using that.