So I’ve been trying to get HAMA to fetch Studio and show ratings from MAL but it doesn’t seem to work. I’ve read up and there seems to be an issue of outdated API. So is @Lightless’s code working or are you still working on it?
I’m having trouble fetching metadata from anidb using hama. Even when matching manually. It finds the title and then swaps the name to the anidb listing but won’t fetch any other data. This is only happening when I use Hama and only started happening when I moved from a linux server to a windows machine but the move was a complete fresh install.
I’ve done the plex dance, reinstalled Plex multiple times as well as Hama and ASS. I even downloaded the anime-titles.xml from anidb and replaced that as well.
Any help or insight is appreciated and thanks ZeroQI for the great agent. !
I am having a hard time figuring out how to get english summary for anime episodes, sometimes I’ll get japanese instead, even the xml file appears to be in english but it shows in japanese instead, any help would be greatly appreciated PlexHama.rar (1.1 MB)
@missingguest Check the custom per-series agent log, it summarizes at the end which source gave the metadata and the order and which other source had that info…
Settings for the agents are self explanatory enough…
There is a troubleshooting section on github readme and it clearly list logs location…
When i try to refresh the metadata or match an anime with ASS and HAMA it just returns this error:
I’ve followed the instructions on how to install everything according to the readme. Oddly enough, it worked just some weeks ago, then suddenly stopped.
Anyone got a good guess on what the issue could be? Metadata for stuff that doesn’t use ASS / HAMA works fine.
i’m having the same issue.
The hama agent log you posted has this critical error , I see the same error in my logs as well.
I’m guessing something has changed or is broken with the aniDB api?
2020-08-28 00:13:34,695 (-4fa01ba0) : CRITICAL (agentkit:1018) - Exception in the search function of agent named ‘HamaTV’, called with keyword arguments {‘openSubtitlesHash’: ‘78df103d065e15ba’, ‘episode’: ‘1’, ‘name’: None, ‘episodic’: ‘1’, ‘show’: ‘[Kamigami] The Tale of Princess Kaguya [BD1080p x264 AC3]’, ‘season’: ‘1’, ‘plexHash’: ‘1e2d3e900399f7dd1b9890bcebaabaea4cd0079f’, ‘filename’: ‘%2Fmnt%2Ffiles%2Fanime%2F%5BKamigami%5D%20The%20Tale%20of%20Princess%20Kaguya%20%5BBD1080p%20x264%20AC3%5D%2FThe%20Tale%20of%20Princess%20Kaguya%2Emkv’, ‘year’: None, ‘duration’: ‘8233408’, ‘id’: ‘273’} (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-a78fef9a9/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py”, line 1011, in _search
agent.search(*f_args, **f_kwargs)
File “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/init.py”, line 164, in search
def search (self, results, media, lang, manual): Search (results, media, lang, manual, False)
File “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/init.py”, line 113, in Search
if movie or max(map(int, media.seasons.keys()))<=1: maxi, n = AniDB.Search(results, media, lang, manual, movie)
File “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/Hama.bundle/Contents/Code/AniDB.py”, line 55, in Search
Log.Info(‘len AniDBTitlesDB: {}’.format(len(AniDBTitlesDB)))
TypeError: object of type ‘NoneType’ has no len()
So, the latest anime-titles.xml is about 5MB. This seems to be large enough to make Hama hate it even more than before and actually just delete it. At least that’s been my experience for the past few days.
I have re-added the anime-titles.xml file manually and it gets removed as soon as Hama tries to match a series.
First: It seems that when use the following structure:
With folders in there:
It always reverted back to THETVDB, and I could not get the metadata from AniDB, resulting in the Directors cuts to be called Other 1-13 without any data.
I moved the 3 folders now to root and it merged it perfectly after after I manually matched the first season to anidb11370.
Mostly when I run into issues the first thing I do is update ASS and HAMA, so the xml problem was already fixed I think (I have all shows listed)
What was the rule for forcing anidb metadata?
I thought it was only adding the [anidb2-xxxx] to the folder and have it in root or in a subdir.
Mine seems to each time convert it to thetvdb instead when I do it.
[anidb-xxxx] forces the anidb id and indicate AniDB numbering for oth specials and episodes
[anidb2-xxxx] use a super complicated suicidal mode where it converts it virtually to TheTVDB numbering the season and episode number and force a tvdbid in the title, if all is number as expected and anidb and tvdb and ScudLee mapping files are all perfect… Please do not use that mode casually, use [anidb-xxxx] instead
@ZeroQI Hi. Any plans on merging MAL branch to the master, or is it still in testing? Or could you at least merge latest master commits to the MAL branch? I’d like to test it out, but would like to have the other latest changes too.
Currently my setup has MAL just for the rating/reviews fields (most other fields use AniDB,TheTVDB). I have a mixed tv/movie library of around 150 titles. Will it be ok if I just left MAL for the ratings field, and added it for studios? I can refresh metadata for my library and then look in the logs if those two are indeed fetched from MAL.