From d60149eb6b678c9d5f3169fa545f959f0bf500f9 Mon Sep 17 00:00:00 2001 From: nausicaa Date: Sun, 3 Mar 2024 05:37:00 +0900 Subject: [PATCH] NewToki: fix manga details with long title (#1653) * Modifying the inability to make a chapter when the manga title is too long * Update src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com> * Update src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com> --------- Co-authored-by: stevenyomi <95685115+stevenyomi@users.noreply.github.com> --- src/ko/newtoki/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ko/newtoki/build.gradle b/src/ko/newtoki/build.gradle index 5f3a36658..da95f003d 100644 --- a/src/ko/newtoki/build.gradle +++ b/src/ko/newtoki/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'NewToki / ManaToki' extClass = '.TokiFactory' - extVersionCode = 31 + extVersionCode = 32 isNsfw = true } diff --git a/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt b/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt index 5edb4bc39..4d9c8f3bf 100644 --- a/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt +++ b/src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/NewToki.kt @@ -182,7 +182,7 @@ abstract class NewToki( private fun mangaDetailsParseWithTitleCheck(manga: SManga, document: Document) = mangaDetailsParse(document).apply { // TODO: don't throw when there is download folder rename feature - if (manga.description.isNullOrEmpty() && manga.title != title) { + if (manga.description.isNullOrEmpty() && title.removeSuffix("…") !in manga.title) { throw Exception(titleNotMatch(title)) } }