S2Manga: fix chapter pages (#18272)

Closes #16144
This commit is contained in:
Luqman 2023-10-03 05:43:07 +07:00 committed by GitHub
parent 9a48fc85ca
commit 9f3b6bc205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
package eu.kanade.tachiyomi.extension.en.s2manga
import eu.kanade.tachiyomi.multisrc.madara.Madara
class S2Manga : Madara("S2Manga", "https://www.s2manga.com", "en") {
override fun headersBuilder() = super.headersBuilder()
.add("Referer", "$baseUrl/")
override val pageListParseSelector = "div.page-break img[src*=\"https\"]"
}

View File

@ -422,7 +422,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("ROG Mangás", "https://rogmangas.com", "pt-BR", pkgName = "mangasoverall", className = "RogMangas", overrideVersionCode = 1), SingleLang("ROG Mangás", "https://rogmangas.com", "pt-BR", pkgName = "mangasoverall", className = "RogMangas", overrideVersionCode = 1),
SingleLang("Romantik Manga", "https://romantikmanga.com", "tr"), SingleLang("Romantik Manga", "https://romantikmanga.com", "tr"),
SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1), SingleLang("Rüya Manga", "https://www.ruyamanga.com", "tr", className = "RuyaManga", overrideVersionCode = 1),
SingleLang("S2Manga", "https://s2manga.com", "en", overrideVersionCode = 1), SingleLang("S2Manga", "https://www.s2manga.com", "en", overrideVersionCode = 2),
SingleLang("Sagrado Império da Britannia", "https://imperiodabritannia.com", "pt-BR", className = "ImperioDaBritannia"), SingleLang("Sagrado Império da Britannia", "https://imperiodabritannia.com", "pt-BR", className = "ImperioDaBritannia"),
SingleLang("SamuraiScan", "https://samuraiscan.org", "es", overrideVersionCode = 2), SingleLang("SamuraiScan", "https://samuraiscan.org", "es", overrideVersionCode = 2),
SingleLang("Sawamics", "https://sawamics.com", "en"), SingleLang("Sawamics", "https://sawamics.com", "en"),