ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)
GNU General Public License v3.0
1.19k stars 110 forks source link

Metadata absent from shows that ive put on today even when using [anidb-####] #483

Closed colelisiongaming closed 2 years ago

colelisiongaming commented 2 years ago

Platform

Operating system and version: Windows 10 Plex version: 4.63.0

Expected Behavior

Should Give me show poster, correct title, and episode names.

Current Behavior

Blank poster, Title with [anidb-####] at the end of title name in plex, and episodes have no names.

Steps to Reproduce

  1. Made new Plex library with ASS and Hama
  2. Put shows in a metadata test folder
  3. Named shows with [anidb-####] for 3 different shows
  4. Bought a coffee for you

Additional information

colelisiongaming commented 2 years ago

https://forums.plex.tv/t/rel-http-anidb-metadata-agent-hama/40470/2078 Looks like others are having this issue as of recent

redownloaded hama and deleted logs when I go to fix match typing in anything yields no results

colelisiongaming commented 2 years ago

root.agent.log Dr Stone [anidb-14491].agent-search.log Dr Stone [anidb-14491].agent-update.log Fire Force S01 1080p Dual Audio BDRip 10 bits DD x265-EMBER [anidb-14488].agent-search.log com.plexapp.agents.hama.log com.plexapp.system.log Fire Force S01 1080p Dual Audio BDRip 10 bits DD x265-EMBER [anidb-14488].agent-update.log NANA[anidb-4143].agent-search.log NANA[anidb-4143].agent-update.log [AnimeRG] Future Diary (Mirai Nikki) Complete Series & OVAs [DUAL-AUDIO] [BD] [1080p] [x265] [pseudo].agent-search.log

ZeroQI commented 2 years ago

com.plexapp.agents.hama.log

    for element in AniDBTitlesDB.xpath(u"/animetitles/anime/title[text()[contains(lower-case(.), '%s')]]" % orig_title.lower().replace("'", " ")):
AttributeError: 'str' object has no attribute 'xpath'

That means AniDBTitlesDB is a string (str), possibly "". The forced ID part did work OK since it needs no database, but this is the agent base for searching title, the will not function at all like this.

2021-09-26 13:58:31,081 (261c) :  DEBUG (sandbox:19) - common.LoadFile() - File cached locally - Filename: AnimeLists\anime-list-master.xml, Age: '0.01 days', Limit: '6 days', url: 'https://raw.githubusercontent.com/Anime-Lists/anime-lists/master/anime-list-master.xml'
2021-09-26 13:58:31,084 (261c) :  INFO (sandbox:19) - Entries loaded: 13712, File: https://raw.githubusercontent.com/Anime-Lists/anime-lists/master/anime-list-master.xml

Logs looks good above, but the AniDBTitlesDB should be an XML object, so please check in agent data folder "AnimeLists\anime-list-master.xml" and see the size and if a proper XML file or compressed in some way Its size should be 2.18 MB (2,296,253 bytes), if different, place an uncompressed copy in its place, can be found 'https://raw.githubusercontent.com/Anime-Lists/anime-lists/master/anime-list-master.xml'

colelisiongaming commented 2 years ago

I actually just did a fresh wipe of plex and the media server I will update this if the issue persists!

ZeroQI commented 2 years ago

all i know is that the xml didn't load as expected, so if it persists, you're not the only one impacted

colelisiongaming commented 2 years ago

On my new file it is 2.18 and hama seems to be functioning ok, metadata is taking awhile but moving along! I had some other questions regarding operation do you have a discord I can reach you at or do you prefer here?

colelisiongaming commented 2 years ago

com.plexapp.agents.hama.log Here is a updated one

colelisiongaming commented 2 years ago

Ive got some weirdness from kizumonogatari The 3 episodes in it are from bakemonogatari the metadata is all messed up and refresh doesnt work other seasons seem to be affected in the same way

Edit: it would appear all my shows are having the issue

ZeroQI commented 2 years ago

If it is a use case query, the plex forum would be more adequate to ask, as some users have passed quite some time on monogatari series which is single handledly the worst to number episode for due to its complexity

First check the unique id assigned is correct in *.search.log. By season you mean series ? if using season numbers, you have to stick to TheTVDB... Without the scanner log and the series log and season and episode number and fields affected, it is not possible to answer

Development note: Has this API changed again? https://atarashii.fribbtastic.net/web/2.1/anime/20899

colelisiongaming commented 2 years ago

So basically I will have a show let's say jojos part 3 that I will force with [anidb-10206] but plex has the episode names and thumbnails of [anidb-9304] it's completely mixed up. Most shows that worked before I reset my Plex are displaying wrong even if I refresh Metadata or type fix match

colelisiongaming commented 2 years ago

Screenshot_20210927-091755_Plex Screenshot_20210927-092001_Plex Screenshot_20210927-091947_Plex Screenshot_20210927-091858_Plex

A few photos to show what is going some episodes have correct names and thumbnails while some don't it just seems very random

ZeroQI commented 2 years ago

Data will come from BOTH AniDB and TheTVDB even if you force the AniDB ID as it is crossed-referenced through the XML

Mapping seem wrong, since AniDB ID 10206 should be mapped to the same ep number in season 2 for ep 1-24 and 25+ season 2 for AniDB ID 10835 according https://github.com/Anime-Lists/anime-lists/blob/master/anime-list-master.xml:

 <anime anidbid="**10206**" tvdbid="262954" defaulttvdbseason="**2**" episodeoffset="" tmdbid="" imdbid="">
    <name>JoJo no Kimyou na Bouken: Stardust Crusaders</name>
  </anime>
  <anime anidbid="**10835**" tvdbid="262954" defaulttvdbseason="**2**" episodeoffset="**24**" tmdbid="" imdbid="">
    <name>JoJo no Kimyou na Bouken: Stardust Crusaders (2015)</name>
  </anime>

Insread, they are mapped to season 4: https://www.thetvdb.com/series/jojos-bizarre-adventure-2012/seasons/official/4

The custom series log shows for each field which metadata source provided the data, the metadata souce order, the mapping used, so you should check that first, and attach said log

I will not reproduce any issue for anybody as i do NOT use Plex anymore. Issues reported need adequate logs, i can't solve it without it. Furthermore Plex are deprecating Python and pluging (New libraries don't use python anymore), and 1st of October TheTVDB API will stop

Right now the numbering is wrong for ep 25-27 as the AniDB ID you forced show 24 episodes only for that series [https://anidb.net/anime/10206]

colelisiongaming commented 2 years ago

Oh sorry the screenshots were of 3 different seasons the one I sent that goes over 27 is diamond is unbreakable. I'll go fetch the logs now

colelisiongaming commented 2 years ago

image Here is one last example using kizumonogatari while I fetch you logs included pictures of the files too

colelisiongaming commented 2 years ago

Kizumonogatari [anidb-8357].agent-update.log root.agent.log com.plexapp.agents.hama.log com.plexapp.system.log Kizumonogatari [anidb-8357].agent-search.log

colelisiongaming commented 2 years ago

Jojo part 3 [inid4cFix + SFX Ver.2] JoJo's Bizarre Adventure - Stardust Crusaders Arc 1 (Blu-Ray 1080p x265 FLAC)[anidb-10206].agent-update.log [inid4cFix + SFX Ver.2] JoJo's Bizarre Adventure - Stardust Crusaders Arc 1 (Blu-Ray 1080p x265 FLAC)[anidb-10206].agent-search.log

jojo Diamond is unbreakable [inid4cFix + SFX Ver.2] JoJo's Bizarre Adventure - Diamond is Unbreakable (Blu-Ray 1080p x265 FLAC)[anidb-11734].agent-update.log [inid4cFix + SFX Ver.2] JoJo's Bizarre Adventure - Diamond is Unbreakable (Blu-Ray 1080p x265 FLAC)[anidb-11734].agent-search.log

ZeroQI commented 2 years ago

Let's focus on jojo part 3 for the moment

Since metadata source order for ep tites is "TheTVDB, AniDB", and s01e01 from AniDB maps to TheTVDB S02e01, title will be "A Man Possessed by an Evil Spirit" , like it is for AniDB, which seem correct

[X]    s1e1 **s01e001** anidbid: xxxxxxx air_date: 2012-10-06 abs_number: 1, title: Dio the Invader
[X]    s2e1 **s01e001** anidbid:   10206 air_date: 2014-04-05 abs_number: 27, title: **A Man Possessed by an Evil Spirit**

https://www.thetvdb.com/series/jojos-bizarre-adventure-2012/seasons/official/2 https://anidb.net/anime/10206

For jojo part 3, which episodes number have wrong title according you, and what should be the title ?

colelisiongaming commented 2 years ago

Jojo only has incorrect thumbnails while monogatari has incorrect episode names and thumbnails