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>
This commit is contained in:
nausicaa 2024-03-03 05:37:00 +09:00 committed by Draff
parent 88dba59eef
commit d60149eb6b
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'NewToki / ManaToki'
extClass = '.TokiFactory'
extVersionCode = 31
extVersionCode = 32
isNsfw = true
}

View File

@ -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))
}
}