ZeroQI / Hama.bundle

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

How to map Re:ZERO Director's Cut #446

Closed jvmunhoz closed 3 years ago

jvmunhoz commented 3 years ago

I'm having difficulties trying to match the Director's Cut of the S01 of Re:Zero kara Hajimeru Isekai Seikatsu with anything on the mapping due to it not being a separate series on tvdb.

I put them as Others 01 through 13, as classified on the anidb page, and the logs show that it pulls some right metadata (like airdate and summary) but the episode name and other things aren't properly filled. How would I go about trying to fix this mapping issue? Is it even possible to reference a Director's Cut through tvdb api?

I do have a custom mapping for the specials, so that anidb Special 01 links directly to tvdb Special 01, and not to Special 2 and so on, as is the case by default. I removed the custom mapping so as not to alter any of the logs:

Re Zero kara Hajimeru Isekai Seikatsu [anidb-11370].scanner.log Re Zero kara Hajimeru Isekai Seikatsu [anidb-11370].agent-update.log Re Zero kara Hajimeru Isekai Seikatsu [anidb-11370].filelist.log

Any input would be appreciated.

Thanks!

ZeroQI commented 3 years ago

In TheTVDB, the director's cut are only supported in an alternate order, not showing as specials so not supported For AniDB, the numbering is correct and episodes detected, albeit with no title (implied: for the selected language, which for you are set in settings to: ['ja', 'en'])

 [X] s0e401 => s0e401 air_date: 2020-01-01 language_rank: 0, title: ""
 - [ ] summary: Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He's entranced at first by the fantasy world 

The AniDB API url is listed above:common.LoadFile() - File cached locally - Filename: 'AniDB\xml\11370.xml', Age: '0.02 days', Limit: '318 days', url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=11370'

Please check the cached file 'AniDB\xml\11370.xml' in agent data folder match the details for episode O1:

<episode id="225905" update="2020-02-26">
<epno type="6">O1</epno>
<length>55</length>
<airdate>2020-01-01</airdate>
<rating votes="3">9.29</rating>
<title xml:lang="ja">始まりの終わりと終わりの始まり</title>
<title xml:lang="en">Director`s Cut: The End of the Beginning and the Beginning of the End</title>
<title xml:lang="x-jat">Hajimari no Owari to Owari no Hajimari</title>
<summary>Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He`s entranced at first by the fantasy world suddenly stretching before his eyes, but the cute girl he believes summoned him is nowhere to be found, and soon enough he`s utterly lost. Then a gang of punks surrounds him, but he quickly learns that he doesn`t have any of the powers that he thought all people transported to a parellel world should have. Just when he`s about to be beaten senseless, a girl appears... Source: crunchyroll</summary>
<resources>
<resource type="28">
<externalentity>
<identifier>792278</identifier>
<identifier>rezero-starting-life-in-another-world-</identifier>
</externalentity>
</resource>
</resources>
</episode>

if it is matching, it should have matched the JAP title with language_rank 0 and as fallback the En title with language_rank 1 and code would need editing

koalix commented 3 years ago

Mine is mapping perfectly. Here is how I did:

Directory of G:(...)\ReZero kara Hajimeru Isekai Seikatsu [anidb2-11370]

11/06/2020 08:53

.

11/06/2020 08:53

..

21/12/2020 00:58 306.153.217 [EA]ReZero-_Director's_CutO1[1280x720][Hi10p][746099A2].mkv

21/12/2020 00:58 291.605.815 [EA]ReZero-_Director's_Cut_O3V2[1280x720][Hi10p][DD529B9B].mkv

21/12/2020 00:58 348.446.671 [EA]ReZero-_Director's_CutO9[1280x720][Hi10p][69267CBC].mkv

21/12/2020 00:58 319.759.272 [EA]ReZero-_Director's_CutO5[1280x720][Hi10p][D3E8CAB1].mkv

21/12/2020 00:58 444.647.864 [EA]ReZero-_Director's_CutO11[1280x720][Hi10p][38ECE234].mkv

21/12/2020 00:58 436.405.694 [EA]ReZero-_Director's_CutO10[1280x720][Hi10p][CDCDA606].mkv

21/12/2020 00:58 349.505.300 [EA]ReZero-_Director's_CutO2[1280x720][Hi10p][EB7F1E55].mkv

21/12/2020 00:58 476.109.564 [EA]ReZero-_Director's_CutO6[1280x720][Hi10p][7C5D4689].mkv

21/12/2020 00:58 536.985.139 [EA]ReZero-_Director's_Cut_O13Final[1280x720][Hi10p][3FE75E96].mkv

21/12/2020 00:58 406.323.968 [EA]ReZero-_Director's_CutO4[1280x720][Hi10p][91666A40].mkv

21/12/2020 00:58 347.682.270 [EA]ReZero-_Director's_CutO7[1280x720][Hi10p][F34F5607].mkv

21/12/2020 00:58 385.429.967 [EA]ReZero-_Director's_CutO12[1280x720][Hi10p][846A5C18].mkv

21/12/2020 00:58 393.672.208 [EA]ReZero-_Director's_CutO8[1280x720][Hi10p][883441C0].mkv

From: ZeroQI notifications@github.com Sent: sábado, 30 de janeiro de 2021 11:57 To: ZeroQI/Hama.bundle Hama.bundle@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [ZeroQI/Hama.bundle] How to map Re:ZERO Director's Cut (#446)

In TheTVDB, the director's cut are only supported in an alternate order, not showing as specials so not supported For AniDB, the numbering is correct and episodes detected, albeit with no title (implied: for the selected language, which for you are set in settings to: ['ja', 'en'])

[X] s0e401 => s0e401 air_date: 2020-01-01 language_rank: 0, title: ""

  • [ ] summary: Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He's entranced at first by the fantasy world

The AniDB API url is listed above:common.LoadFile() - File cached locally - Filename: 'AniDB\xml\11370.xml', Age: '0.02 days', Limit: '318 days', url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=11370'

Please check the cached file 'AniDB\xml\11370.xml' in agent data folder match the details for episode O1:

O1 55 2020-01-01 9.29 始まりの終わりと終わりの始まり Director`s Cut: The End of the Beginning and the Beginning of the End Hajimari no Owari to Owari no Hajimari Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He`s entranced at first by the fantasy world suddenly stretching before his eyes, but the cute girl he believes summoned him is nowhere to be found, and soon enough he`s utterly lost. Then a gang of punks surrounds him, but he quickly learns that he doesn`t have any of the powers that he thought all people transported to a parellel world should have. Just when he`s about to be beaten senseless, a girl appears... Source: crunchyroll 792278 rezero-starting-life-in-another-world-

if it is matching, it should have matched the JAP title with language_rank 0 and as fallback the En title with language_rank 1 and code would need editing

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ZeroQI/Hama.bundle/issues/446#issuecomment-770224253 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVLMCOSFN62JDZHOCI7R4LS4QM4TANCNFSM4W2KMUWQ . https://github.com/notifications/beacon/ABVLMCPD5AQCAE2B2GRS6PLS4QM4TA5CNFSM4W2KMUW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFXULA7I.gif

ZeroQI commented 3 years ago

https://github.com/Anime-Lists/anime-lists/blob/master/anime-list-master.xml

  <anime anidbid="11370" tvdbid="305089" defaulttvdbseason="1" episodeoffset="" tmdbid="" imdbid="">
    <name>Re:Zero kara Hajimeru Isekai Seikatsu</name>
    <mapping-list>
      <mapping anidbseason="0" tvdbseason="0">;1-0;</mapping>
      <mapping anidbseason="0" tvdbseason="0" start="2" end="26" offset="-1"/>
    </mapping-list>

Anidb2 map to thetvdb numbering so unsure which ep it get maps to and if the metadata is the director's cut or the standard season 1, as the mapping file do not map the other episodes...

jvmunhoz commented 3 years ago

In TheTVDB, the director's cut are only supported in an alternate order, not showing as specials so not supported For AniDB, the numbering is correct and episodes detected, albeit with no title (implied: for the selected language, which for you are set in settings to: ['ja', 'en'])

 [X] s0e401 => s0e401 air_date: 2020-01-01 language_rank: 0, title: ""
 - [ ] summary: Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He's entranced at first by the fantasy world 

The AniDB API url is listed above:common.LoadFile() - File cached locally - Filename: 'AniDB\xml\11370.xml', Age: '0.02 days', Limit: '318 days', url: 'http://api.anidb.net:9001/httpapi?request=anime&client=hama&clientver=1&protover=1&aid=11370'

Please check the cached file 'AniDB\xml\11370.xml' in agent data folder match the details for episode O1:

<episode id="225905" update="2020-02-26">
<epno type="6">O1</epno>
<length>55</length>
<airdate>2020-01-01</airdate>
<rating votes="3">9.29</rating>
<title xml:lang="ja">始まりの終わりと終わりの始まり</title>
<title xml:lang="en">Director`s Cut: The End of the Beginning and the Beginning of the End</title>
<title xml:lang="x-jat">Hajimari no Owari to Owari no Hajimari</title>
<summary>Natsuki Subaru is summoned to a parallel world on his way home from the convenience store. He`s entranced at first by the fantasy world suddenly stretching before his eyes, but the cute girl he believes summoned him is nowhere to be found, and soon enough he`s utterly lost. Then a gang of punks surrounds him, but he quickly learns that he doesn`t have any of the powers that he thought all people transported to a parellel world should have. Just when he`s about to be beaten senseless, a girl appears... Source: crunchyroll</summary>
<resources>
<resource type="28">
<externalentity>
<identifier>792278</identifier>
<identifier>rezero-starting-life-in-another-world-</identifier>
</externalentity>
</resource>
</resources>
</episode>

if it is matching, it should have matched the JAP title with language_rank 0 and as fallback the En title with language_rank 1 and code would need editing

Yes, first thing I did was check the 11370.xml. All informations regarding the Director's Cut was there. Here it is:

11370.zip

Mine is mapping perfectly. Here is how I did: Directory of G:(...)\ReZero kara Hajimeru Isekai Seikatsu [anidb2-11370] 11/06/2020 08:53

. 11/06/2020 08:53 .. 21/12/2020 00:58 306.153.217 [EA]ReZero-_Director's_CutO1[1280x720][Hi10p][746099A2].mkv 21/12/2020 00:58 291.605.815 [EA]ReZero-_Director's_Cut_O3V2[1280x720][Hi10p][DD529B9B].mkv 21/12/2020 00:58 348.446.671 [EA]ReZero-_Director's_CutO9[1280x720][Hi10p][69267CBC].mkv 21/12/2020 00:58 319.759.272 [EA]ReZero-_Director's_CutO5[1280x720][Hi10p][D3E8CAB1].mkv 21/12/2020 00:58 444.647.864 [EA]ReZero-_Director's_CutO11[1280x720][Hi10p][38ECE234].mkv 21/12/2020 00:58 436.405.694 [EA]ReZero-_Director's_CutO10[1280x720][Hi10p][CDCDA606].mkv 21/12/2020 00:58 349.505.300 [EA]ReZero-_Director's_CutO2[1280x720][Hi10p][EB7F1E55].mkv 21/12/2020 00:58 476.109.564 [EA]ReZero-_Director's_CutO6[1280x720][Hi10p][7C5D4689].mkv 21/12/2020 00:58 536.985.139 [EA]ReZero-_Director's_Cut_O13Final[1280x720][Hi10p][3FE75E96].mkv 21/12/2020 00:58 406.323.968 [EA]ReZero-_Director's_CutO4[1280x720][Hi10p][91666A40].mkv 21/12/2020 00:58 347.682.270 [EA]ReZero-_Director's_CutO7[1280x720][Hi10p][F34F5607].mkv 21/12/2020 00:58 385.429.967 [EA]ReZero-_Director's_CutO12[1280x720][Hi10p][846A5C18].mkv 21/12/2020 00:58 393.672.208 [EA]ReZero-_Director's_CutO8[1280x720][Hi10p][883441C0].mkv

Tried changing to anibd2 but everything remains the same:

They remain as Other 01...13 in the Specials season

image

EndOfLine369 commented 3 years ago

Looks like you have zero languages set in HAMA for "Serie Language Priority" or "Episode Language Priority" TVDBid: '305089', IMDbid: '', language_series : [], language_episodes: []

And you're only getting titles from TVDB on the other episodes as we force in an english default to the priority list & a 'main' in AniDB which is only on the series title.

jvmunhoz commented 3 years ago

Ok, that was dumb. I had both settings as "main".

I had noticed I was getting all episode name metadata from TVDB but I guessed that's how HAMA worked, since I'm new to it.

Now I just need to see if there is a way to map these episodes to Season 1 instead of Others lol

Thanks for the fix :D

EndOfLine369 commented 3 years ago

I don't think you're going to be able to get what you want to get. Which I think is those "Director Cut" episodes as S1 with metadata. To my knowledge, we mainly only support TVDB's aired order (standard/legacy), transposing absolute order to aired ordered placement, & reordering based on actual air date. None of which would get this out of S0 "Other" status with metadata being available.

ZeroQI commented 3 years ago

Or absolute numbering with tvdb 3/4 modes...

EndOfLine369 commented 3 years ago

Or absolute numbering with tvdb 3/4 modes...

To clarify: tvdb2/3 are the "transposing absolute order to aired ordered placement" I mentioned tvdb4 is "transposing absolute order to custom season placement" which I didn't mention Both of which would still not help in moving out of S0 "Other" status with metadata being available. (again to my knowledge)

EndOfLine369 commented 3 years ago

Since the 'issue' is fixed with root cause being incorrect "Serie Language Priority" & "Episode Language Priority" entries I think this can now be closed out. Any further testing you do to try to get the custom mapping goal via different modes w/ possibly mapping hacks via a local 'anime-list-custom.xml' file are not an issue/bug for HAMA to be looked into.

jvmunhoz commented 3 years ago

Well, I actually managed to do it by manually editing the 11370.xml and replacing episodes 1-13 matadata with the ones from the Director's Cut version. Brute force, sure, but probably the only way to do it.

A custom-mapping scheme for cases such as this when you would like to make a custom order would be a nice addition. Specials counting as an extra episode is pretty common in anime.

And thanks again for the help, had no idea could be my configs...

You may close the issue.

ZeroQI commented 3 years ago

Normally the custom mapping file would do the trick but NOT for alternate tvdb numbering like there's so yes that is the only back possible.

Yes tvdb34 would not solve neither