@enchained The logs attached show there is no MyAnimeList meta source gathered otherwise it would be listed despite the id being found. I loaded it for hentai only but it could be loaded alright.
https://github.com/ZeroQI/Hama.bundle/blob/Beta-Agent/Contents/Code/init.py line 92. this needs amending.
dict_MyAnimeList = MyAnimeList.GetMetadata(movie, MALid ) if TVDBid=='hentai' else {}
needs replacing with:
dict_MyAnimeList = MyAnimeList.GetMetadata(movie, MALid ) if MALid else {}
Please test and put the right number of spaced in front (2 per indentaion) no tab and let me know.
Edit: updated source
@ZeroQI said:
@enchained The logs attached show there is no MyAnimeList meta source gathered otherwise it would be listed despite the id being found. I loaded it for hentai only but it could be loaded alright.
https://github.com/ZeroQI/Hama.bundle/blob/Beta-Agent/Contents/Code/__init__.py line 92. this needs amending.
dict_MyAnimeList = MyAnimeList.GetMetadata(movie, MALid ) if TVDBid=='hentai' else {}
needs replacing with:
dict_MyAnimeList = MyAnimeList.GetMetadata(movie, MALid ) if MALid else {}
Please test and put the right number of spaced in front (2 per indentaion) no tab and let me know.
Edit: updated source
Thanks! Somehow it was line 97, but still no changes on refresh, maybe it was because I used the pre-release instead of current branch zip? Should I use that instead?
UPD: used current beta branch source with your fix, still no changes, attaching both logs. Around 01:57 I removed other rating sources in the preferences, but didnāt work either. Restarted Plex in between the tries too.
And what about the WebTools question?
Webtool should work with github project URL. At least it used toā¦
I am only loading one version of the code on my NAS and itās the beta for now
Logs shows the metadata source summary list the fields found and rating is not in it. Have added it on latest beta branch. Please test
I think git messed something up on merge since now there are things like ā<<<<<<< HEADā in the source init. I overwrote that locally with the latest pre-merge commit init, no success though.
Still nothing on MAL metadata after the INFO (MyAnimeList:15) - MyAnimeList.GetMetadata() - MALid: '34984' line. There should be other lines with INFO (MyAnimeList:) if there was any MAL metadata gathered? Or what other logs I should pay attention to?
@enchained You are right, just corrected it
For now i donāt list much but you have the xml linked though
2018-02-14 14:07:02,892 (7f3331089700) : INFO (MyAnimeList:15) - MyAnimeList.GetMetadata() - MALid: '34984'
2018-02-14 14:07:02,893 (7f3331089700) : DEBUG (common:230) - common.LoadFile() - CacheTime: 'Wed Feb 14 01:40:36 2018', Limit: 'Wed Feb 21 14:07:02 2018', url: 'http://fribbtastic-api.net/fribbtastic-api/services/anime?id=34984', Filename: 'MyAnimeList/xml/34984.xml' loaded from cache
Here is the metadata summary you probably missed. Show āscoreā field which is wrong, should be called āratingā
2018-02-14 14:07:02,950 (7f3331089700) : INFO (common:451) - common.UpdateMeta() - List of Metadata Sources and their movie/serie, season, episodes fields gathered
2018-02-14 14:07:02,953 (7f3331089700) : INFO (common:453) - - MyAnimeList : genres ( 4) | originally_available_at ( 1) | summary ( 1) | score ( 1) | title ( 1)
Use latest code just now i updated that include in MyAnimeList.py the below (had it the other way around):
SaveDict( GetXml(xml, 'score' ), MyAnimeList_dict, 'rating' )
Looks like it worked! Thank you sooo much for making time to look into this!
Could you please then change the star image to MAL favicon for such cases? I thought this was possible, saw IMDB icon with some other agent. Is the ārating_imageā preference related to that maybe? I have MyAnimeList there too just in case.
And what are other rating-related settings fields? āaudience_ratingā, āaudience_rating_imageā, āreviewsā, ārating_countā.
Are they relevant/will be relevant for MAL? I donāt see them in the updated Metadata.txt - will they be deprecated and removed from GUI settings too?
Or, if I understand old āMetadata.txtā correctly, those were undocumented and taken from other agent? Then āaudienceā is probably irrelevant here since in could mean rotten tomato audience score (vs the critic score), and I donāt think many anime has both critic and user scores somewhere.
Attaching logs just in case:
@enchained Excellent!
I do not control GUI settings, just agent settings.
Metadata.txt is a helper file i wrote it may not be up to date. Some changes for metadata are not documented so i resorted to using that to help other people trying to write agents, as i believe mine is a good case study
I built an engine loading in arrays firlds and settigns to use them in the order desired so i support all fields.
For the rating image i never used it, saw it in some source unused. there is no rating count in MyAnimeList XMLā¦
https://github.com/plexinc-agents/PlexMovie.bundle/blob/master/Contents/Code/init.py
Line 788: metadata.rating_image = āimdb://image.ratingā
Doesnāt look like you can just use any image. If somebody know how to use, i would implement
@ZeroQI said:
@enchained Excellent!I do not control GUI settings, just agent settings.
Iāve meant agent settings in the GUI, found out from where those settings fields come from: https://github.com/ZeroQI/Hama.bundle/blob/Beta-Agent/Contents/DefaultPrefs.json
So it will contain all fields just in case? Just a little bit confusing for a user to have so many rating-related fields, so I recommend to edit that, at least when coming out of beta.
For the rating image i never used it, saw it in some source unused. there is no rating count in MyAnimeList XMLā¦
https://github.com/plexinc-agents/PlexMovie.bundle/blob/master/Contents/Code/__init__.py
Line 788: metadata.rating_image = āimdb://image.ratingāDoesnāt look like you can just use any image. If somebody know how to use, i would implement
Thanks for the info. Do you mean those could possibly be just hard-coded into Plex? Will try to look into it anyway.
@enchained There was too many fields in the agent settigns so i use one and if it exists for both series and episodes, you can use ā|ā to split the two metadata orders it shortened a lot the list.
I could hide some, will look into that
āimdb://image.ratingā seem hardcoded. it was added recently enough, didnāt exist last year from memory.
@ZeroQI - very new to using ASS/HAMA, and itās finding things mostly ok now, but I find TVDB finds most things just fine, and I would love it to prefer/start with TVDB first, and then if I need to I can add an anidb-#### to the folder, or do a fix match to find it on anidb? Is that possible?
I find by default itās looking at AniDB first for everything and messing certain series with seasons up like dragon ball, z, GT, etc.
Hama (Http AniDB Metadata Agent) search on AniDB mainly hence the title, but can be forced on tvdb ids or search for tvdb ids if no anidb match is foundā¦
Nonetheless it match anidb to tvdb aids and detect multiple seasons so it shouldnāt matter in the endā¦
The readme has a troubleshooting section telling which files to attach.
Why not use tvetvdb agent and select manually hama for the series that didnāt match then ?
Are you using Beta branch?
How is it messing up series ? Really interested in that oneā¦
Which naming convention is followed anidn or tvdb?
Hey all,
recently rebuilt my plex server and i copied over the hama.bundle and absolute series scanner folder and it seems to be matching the anime but i cannot get it to download the artwork for some reason. Nothing on the background, the poster etc. But it is matching the episode names.
Any thoughts on what to check? been a while since i last set it up
@Blindsay i would take a wild guess and say you didnāt read the read-me that mention no posters downloads due to the folders in agent data folders missing. Also, if using the beta branch it will create them automatically.
I will merge beta branch in place of the normal branch soon. i need to make sure logs are stable, currently, there is a search, update, scanand filelist log per series in agent data folders / Logs/ Libraryā¦
If some good souls could check all is logged as it should and report any issue, that would help.
@ZeroQI said:
@Blindsay i would take a wild guess and say you didnāt read the read-me that mention no posters downloads due to the folders in agent data folders missing. Also, if using the beta branch it will create them automatically.I will merge beta branch in place of the normal branch soon. i need to make sure logs are stable, currently, there is a search, update, scanand filelist log per series in agent data folders / Logs/ Libraryā¦
If some good souls could check all is logged as it should and report any issue, that would help.
Yeah I just copied the folders from my old server so I guess I missed that one. Iāll take a look when I get home from work. Thanks!
@ZeroQI said:
Hama (Http AniDB Metadata Agent) search on AniDB mainly hence the title, but can be forced on tvdb ids or search for tvdb ids if no anidb match is foundā¦
Nonetheless it match anidb to tvdb aids and detect multiple seasons so it shouldnāt matter in the endā¦
The readme has a troubleshooting section telling which files to attach.Why not use tvetvdb agent and select manually hama for the series that didnāt match then ?
Are you using Beta branch?
How is it messing up series ? Really interested in that oneā¦
Which naming convention is followed anidn or tvdb?
I shouldnāt have said itās messing up, it just wasnāt doing things like I preferred I guess.
I made a new library with ASS searcher, and TVDB agent, and for some incorrect matches or single movies (Your Name. as an example) I match with HAMA and that seems to be working good now.
I was having a lot of trouble with it showing certain things properly though, e.g. Dragon Ball was getting metadata for episode titles and making it the air date instead of the episode title? Was very odd. I couldnāt get that fixed unless I matched it via TVDB instead.
@Blindsay Thanks for the donation, much appreciated.
@CorneliousJD Which dragon ball did that? (original, z, gt, kai, super?)
you should have logs from HAMA per series still in agent data folders/logs/library name
Somebody else mentionned exactly that but need the serie⦠I need to solve thatā¦
@ZeroQI said:
@Blindsay Thanks for the donation, much appreciated.
@CorneliousJD Which dragon ball did that? (original, z, gt, kai, super?)
you should have logs from HAMA per series still in agent data folders/logs/library name
Somebody else mentionned exactly that but need the serie⦠I need to solve thatā¦
Hi @ZeroQI, that was the original Dragon Ball - I had a pack that was grouped into 5 season (instead of 6 like TVDB shows) but even after getting proper file names it was still showing up as air dates for some reason. This caused me to scrape against TVDB for most shows and use HAMA as a backup scanner for incorrect matches or oddities that donāt work right w/ TVDB. Still works great for that though, loving it so far, making things much easier to use w/ anime!
Hi @ZeroQI I was wondering if you have any idea why āOverlordā is listing the same episode from season 01 into season 02?
i checked both anidb and thetvdb and both have the season listed as a sequel with correct episode names.
The picture listed on season 2 seems to be correct anyways, but any further it is like season 02
I was also wondering it it is possible to force match seasons from series? for example if they would be a sequel but listed as ova for example? Some series can get quite confusing when you have for example:
prequel OVA > Season 01 > sequel OVA 1+2 > Season 02, not sure if there is any possible way to get them into a correct watching order. currently this would be: Season 01, Season 02, specials and the specials would contain all files that without looking it up yourself first would be almost impossible to know what order to watch.
Including my log file for overlord. Thx in advance
@T-Blade seem like anidb duplicates results for tvdb series with tvdb id, so i need to fix thatā¦
title workaround: AniDB, TheTVDB|TheTVDB, AniDB to use TheTVDB for ep titles in the mean time.
Need to find where the season number comes from
if source== āAniDBā and (metadata.id.startswith(ātvdbā) and not metadata.id.startswith(ātvdb4ā) or max(map(int, media.seasons.keys()))>1): new_season, new_episode = AnimeLists.anidb_ep(mappingList, season, episode)
Line 513 of common.py:
if source=='AniDB' and (metadata.id.startswith("tvdb") and not metadata.id.startswith("tvdb4") or max(map(int, media.seasons.keys()))>1): new_season = '1' if season==Dict(mappingList, 'defaulttvdbseason') and season!='0' else season
Could you replace with:
if source=='AniDB' and (metadata.id.startswith("tvdb") and not metadata.id.startswith("tvdb4") or max(map(int, media.seasons.keys()))>1): new_season = Dict(mappingList, 'defaulttvdbseason') if Dict(mappingList, 'defaulttvdbseason') else '1'
You would need to remove the ep title by hand before matching but if it works only one season will be updated from AniDB and i just need to import multiple anidb xmls which i had to do for TVDB ids series (or AniDB ids series with multiple seasons) for some time but lacked a practical case to think it through and that is your issue and need to solve itā¦
Major version change is incoming soon:
- adding multiple Anidb XML if multiple seasons using scudlee xml default season. If season on disk = default season, load the anidb xml.
- redoing of the beta scanner as the recursive scanner call works but seem to give path missing in internal xmlās
once that is completed and tested, will merge beta into main branch
Hey guys first time nas owner here so im new to all of this. Please bear with me. So i just got a Synology DS916+ 8GB model and im trying to set up plex which is working fine with movies and tv shows but anime is giving me a hard time. I just discovered hama and i tried to install it and have it scan my anime but i am stuck. I read the instructions and since i dont know command line console i had to use WinSCP to gain access to the plex folder tree since in File Station plex is hidden for some reason i can only see Volume 1. So using WinSCP i navigated to /volume1/Plex/Library/Application Support/Plex Media Server/ and dragged and dropped Scanners/Series which contains Absolute Series Scanner (legacy).py, Absolute Series Scanner.py and PowerShell Update scanner.ps1. Then i navigated to /volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins folder and dragged and dropped the Hama.bundle folder making sure to remove master from the name of the folder. Then i navigated to /volume1/Plex/Library/Application Support/Plex Media Server/Plug-in Support/Data and dragged and dropped the com.plexapp.agents.hama folder. Then i knew that to get posters and art to show up i needed to give hama permissions. I have no idea how to work consoles but i gave it a shot. I fired up putty and logged in as admin and i copied and pasted chown -R plex:users and it said āchown: missing operand after āplex:usersā Try āchown --helpā for more informationā. I tried the same with chmod -R 700 and it said āchmod: missing operand after ā700ā Try āchmod --helpā for more informationā. So i shut down putty and tried to log in as root and input the same commands and got the same results. So right now im stuck at the part where you give permissions. Any help would be greatly appreciated.