MangaCatalog: Change selected element to fix chapter loading (#19122)

Change selected element to fix chapter loading
This commit is contained in:
Kruchi 2023-12-07 14:09:39 +01:00 committed by GitHub
parent ace18512db
commit 523ebc56f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -88,14 +88,14 @@ abstract class MangaCatalog(
override fun chapterListSelector(): String = "div.w-full > div.bg-bg-secondary > div.grid" override fun chapterListSelector(): String = "div.w-full > div.bg-bg-secondary > div.grid"
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
val name1 = element.select(".col-span-3 > a").text() val name1 = element.select(".col-span-4 > a").text()
val name2 = element.select(".text-xs:not(a)").text() val name2 = element.select(".text-xs:not(a)").text()
if (name2 == "") { if (name2 == "") {
name = name1 name = name1
} else { } else {
name = "$name1 - $name2" name = "$name1 - $name2"
} }
url = element.select(".col-span-3 > a").attr("abs:href") url = element.select(".col-span-4 > a").attr("abs:href")
date_upload = System.currentTimeMillis() date_upload = System.currentTimeMillis()
} }

View File

@ -9,7 +9,7 @@ class MangaCatalogGenerator : ThemeSourceGenerator {
override val themeClass = "MangaCatalog" override val themeClass = "MangaCatalog"
override val baseVersionCode: Int = 3 override val baseVersionCode: Int = 4
override val sources = listOf( override val sources = listOf(
SingleLang("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww8.readsnk.com", "en", className = "ReadAttackOnTitanShingekiNoKyojinManga", overrideVersionCode = 4), SingleLang("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww8.readsnk.com", "en", className = "ReadAttackOnTitanShingekiNoKyojinManga", overrideVersionCode = 4),