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:
parent
88dba59eef
commit
d60149eb6b
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'NewToki / ManaToki'
|
||||
extClass = '.TokiFactory'
|
||||
extVersionCode = 31
|
||||
extVersionCode = 32
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue