Skip to content

Fix for issue #169.#229

Merged
Snd-R merged 7 commits intoSnd-R:masterfrom
fatotak:bugfix/169_mangadex_use_of_title_field
Jul 9, 2025
Merged

Fix for issue #169.#229
Snd-R merged 7 commits intoSnd-R:masterfrom
fatotak:bugfix/169_mangadex_use_of_title_field

Conversation

@fatotak
Copy link

@fatotak fatotak commented Jun 19, 2025

This PR is to address: #169

Currently, title field is ignored because it's language tag is often wrong.

To address this, this PR adds the following logic:

If "${originalLang}-ro" is not present in altTitles, and titleLanguage is duplicated in altTitles, will assume title is actually "${originalLang}-ro" and not titleLanguage.

Restores title as one of the series title candidates, but changes it's language flag based on what's available in altTitles as well as the value of originalLang.

If originalLang-ro is not present in altTitles, will assume "en" title is actually originalLang-ro.
@fatotak fatotak changed the title Fix for issue 169. Fix for issue https://github.com/Snd-R/komf/issues/169. Jun 19, 2025
@fatotak fatotak changed the title Fix for issue https://github.com/Snd-R/komf/issues/169. Fix for issue #169. Jun 19, 2025
jhskim added 4 commits June 20, 2025 03:46
Now does not assume title will be tagged as "en", but looks for a dupe of whatever the title lang is in altTitles.

If both of the below conditions holds true, then title is treated as romaji of the original language:
1. there is a dupe language in altTitle
2. original language romaji is missing from altTitle
@fatotak
Copy link
Author

fatotak commented Jun 21, 2025

Should theoretically fix this issue (can't test because I don't know how to build komf - please advise)

https://api.mangadex.org/manga/779a8499-76eb-4dba-8e50-61f768e84488

It will id korean altTitle that was mis-tagged as en since originalLanguage is ko.
I can change it to id all 3 CJK languages if desired, but was seeking only to id the originalLanguage altTitle on top of the title field issue.

@Snd-R Snd-R merged commit e6b2d26 into Snd-R:master Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants