readsnk: fix chapter list and update domain (#2270)

readsnk: fix chapter list and update domanin
This commit is contained in:
AwkwardPeak7 2024-04-06 11:45:00 +05:00 committed by Draff
parent ce1b255bcd
commit 5d3348bd5b
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'Read Attack on Titan Shingeki no Kyojin Manga' extName = 'Read Attack on Titan Shingeki no Kyojin Manga'
extClass = '.ReadAttackOnTitanShingekiNoKyojinManga' extClass = '.ReadAttackOnTitanShingekiNoKyojinManga'
themePkg = 'mangacatalog' themePkg = 'mangacatalog'
baseUrl = 'https://ww8.readsnk.com' baseUrl = 'https://ww9.readsnk.com'
overrideVersionCode = 4 overrideVersionCode = 5
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -4,7 +4,7 @@ import eu.kanade.tachiyomi.multisrc.mangacatalog.MangaCatalog
import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
class ReadAttackOnTitanShingekiNoKyojinManga : MangaCatalog("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww8.readsnk.com", "en") { class ReadAttackOnTitanShingekiNoKyojinManga : MangaCatalog("Read Attack on Titan Shingeki no Kyojin Manga", "https://ww9.readsnk.com", "en") {
override val sourceList = listOf( override val sourceList = listOf(
Pair("Shingeki No Kyojin", "$baseUrl/manga/shingeki-no-kyojin/"), Pair("Shingeki No Kyojin", "$baseUrl/manga/shingeki-no-kyojin/"),
Pair("Colored", "$baseUrl/manga/shingeki-no-kyojin-colored/"), Pair("Colored", "$baseUrl/manga/shingeki-no-kyojin-colored/"),
@ -20,7 +20,7 @@ class ReadAttackOnTitanShingekiNoKyojinManga : MangaCatalog("Read Attack on Tita
Pair("No Regrets Colored", "$baseUrl/manga/attack-on-titan-no-regrets-colored/"), Pair("No Regrets Colored", "$baseUrl/manga/attack-on-titan-no-regrets-colored/"),
).sortedBy { it.first }.distinctBy { it.second } ).sortedBy { it.first }.distinctBy { it.second }
override fun chapterListSelector(): String = "div.w-full div.grid div.col-span-3" override fun chapterListSelector(): String = "div.w-full div.grid div.col-span-4"
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply { override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
val urlElement = element.selectFirst("a")!! val urlElement = element.selectFirst("a")!!