diff --git a/src/all/comickfun/build.gradle b/src/all/comickfun/build.gradle index 65de02de3..2cab48f3a 100644 --- a/src/all/comickfun/build.gradle +++ b/src/all/comickfun/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Comick.fun' pkgNameSuffix = 'all.comickfun' extClass = '.ComickFunFactory' - extVersionCode = 8 + extVersionCode = 9 isNsfw = true } diff --git a/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFunSerialization.kt b/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFunSerialization.kt index 00dadb5e4..8d35393ab 100644 --- a/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFunSerialization.kt +++ b/src/all/comickfun/src/eu/kanade/tachiyomi/extension/all/comickfun/ComickFunSerialization.kt @@ -161,7 +161,7 @@ class SChapterDeserializer : KSerializer { "vol" -> vol = decodeNullableSerializableElement(descriptor, index, serializer()) "chap" -> { chap = decodeNullableSerializableElement(descriptor, index, serializer()) - chapter_number = chap?.toFloat() ?: -1f + chapter_number = chap?.substringBefore('-')?.toFloatOrNull() ?: -1f } "hid" -> hid = decodeStringElement(descriptor, index) "iso639_1" -> iso639_1 = decodeStringElement(descriptor, index)