From 523ebc56f2568075191cbb6cf282e2a1f992ee0d Mon Sep 17 00:00:00 2001 From: Kruchi <32173730+Kruchji@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:09:39 +0100 Subject: [PATCH] MangaCatalog: Change selected element to fix chapter loading (#19122) Change selected element to fix chapter loading --- .../eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt | 4 ++-- .../tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt index d1cbd0d4c..14ebf65e8 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalog.kt @@ -88,14 +88,14 @@ abstract class MangaCatalog( override fun chapterListSelector(): String = "div.w-full > div.bg-bg-secondary > div.grid" 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() if (name2 == "") { name = name1 } else { 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() } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt index 0bb77d672..dc926a643 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangacatalog/MangaCatalogGenerator.kt @@ -9,7 +9,7 @@ class MangaCatalogGenerator : ThemeSourceGenerator { override val themeClass = "MangaCatalog" - override val baseVersionCode: Int = 3 + override val baseVersionCode: Int = 4 override val sources = listOf( SingleLang("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww8.readsnk.com", "en", className = "ReadAttackOnTitanShingekiNoKyojinManga", overrideVersionCode = 4),