Sushi-Scan: Fix HTTP-based images (#18562)
This commit is contained in:
parent
012d56497c
commit
d6cc494d9d
|
@ -31,7 +31,7 @@ class SushiScan : MangaThemesia("Sushi-Scan", "https://sushiscan.net", "fr", man
|
|||
val jsonString = scriptContent.substringAfter("ts_reader.run(").substringBefore(");")
|
||||
val tsReader = json.decodeFromString<TSReader>(jsonString)
|
||||
val imageUrls = tsReader.sources.firstOrNull()?.images ?: return emptyList()
|
||||
return imageUrls.mapIndexed { index, imageUrl -> Page(index, document.location(), imageUrl) }
|
||||
return imageUrls.mapIndexed { index, imageUrl -> Page(index, document.location(), imageUrl.replace("http://", "https://")) }
|
||||
}
|
||||
|
||||
@Serializable
|
||||
|
|
|
@ -133,7 +133,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Summer Fansub", "https://smmr.in", "pt-BR", isNsfw = true),
|
||||
SingleLang("SummerToon", "https://summertoon.com", "tr"),
|
||||
SingleLang("Surya Scans", "https://suryareader.com", "en", overrideVersionCode = 1),
|
||||
SingleLang("Sushi-Scan", "https://sushiscan.net", "fr", className = "SushiScan", overrideVersionCode = 7),
|
||||
SingleLang("Sushi-Scan", "https://sushiscan.net", "fr", className = "SushiScan", overrideVersionCode = 8),
|
||||
SingleLang("Sushiscan.fr", "https://sushiscan.fr", "fr", className = "SushiScanFR"),
|
||||
SingleLang("Tarot Scans", "https://www.tarotscans.com", "tr"),
|
||||
SingleLang("Tecno Scan", "https://tecnoscann.com", "es", isNsfw = true, overrideVersionCode = 6),
|
||||
|
|
Loading…
Reference in New Issue