diff --git a/src/en/mangakatana/build.gradle b/src/en/mangakatana/build.gradle index 07144a130..e02d8038c 100644 --- a/src/en/mangakatana/build.gradle +++ b/src/en/mangakatana/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaKatana' pkgNameSuffix = 'en.mangakatana' extClass = '.MangaKatana' - extVersionCode = 6 + extVersionCode = 7 } apply from: "$rootDir/common.gradle" diff --git a/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt b/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt index 7713a83d1..39cde73cf 100644 --- a/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt +++ b/src/en/mangakatana/src/eu/kanade/tachiyomi/extension/en/mangakatana/MangaKatana.kt @@ -179,7 +179,7 @@ class MangaKatana : ConfigurableSource, ParsedHttpSource() { date_upload = dateFormat.parse(element.select(".update_time").text())?.time ?: 0 } - private val imageArrayRegex = Regex("""var ytaw=\[([^\[]*)]""") + private val imageArrayRegex = Regex("""var htnc=\[([^\[]*)]""") private val imageUrlRegex = Regex("""'([^']*)'""") // Page List @@ -190,7 +190,7 @@ class MangaKatana : ConfigurableSource, ParsedHttpSource() { } override fun pageListParse(document: Document): List { - val imageArray = document.select("script:containsData(var ytaw)").firstOrNull()?.data() + val imageArray = document.select("script:containsData(var htnc)").firstOrNull()?.data() ?.let { imageArrayRegex.find(it)?.groupValues?.get(1) } ?: throw Exception("Image array not found") return imageUrlRegex.findAll(imageArray).asIterable().mapIndexed { i, mr ->