Fix chapter images not loading at some WPMangaStream sources. (#8309)
This commit is contained in:
parent
5cc4321f0c
commit
9854eb2af2
|
@ -286,7 +286,8 @@ abstract class WPMangaStream(
|
||||||
val imageList = json.parseToJsonElement(imageListJson).jsonArray
|
val imageList = json.parseToJsonElement(imageListJson).jsonArray
|
||||||
|
|
||||||
val scriptPages = imageList.mapIndexed { i, jsonEl ->
|
val scriptPages = imageList.mapIndexed { i, jsonEl ->
|
||||||
Page(i, "", jsonEl.jsonPrimitive.content)
|
val imageUrl = jsonEl.jsonPrimitive.content
|
||||||
|
Page(i, "", if (imageUrl.startsWith(baseUrl)) imageUrl else baseUrl + imageUrl)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (htmlPages.size < scriptPages.size) {
|
if (htmlPages.size < scriptPages.size) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val themeClass = "WPMangaStream"
|
override val themeClass = "WPMangaStream"
|
||||||
|
|
||||||
override val baseVersionCode: Int = 7
|
override val baseVersionCode: Int = 8
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang("Asura Scans", "https://www.asurascans.com", "en", overrideVersionCode = 5),
|
SingleLang("Asura Scans", "https://www.asurascans.com", "en", overrideVersionCode = 5),
|
||||||
|
|
Loading…
Reference in New Issue