Fix chapter images not loading at some WPMangaStream sources. (#8309)

This commit is contained in:
Alessandro Jean 2021-07-30 07:26:11 -03:00 committed by GitHub
parent 5cc4321f0c
commit 9854eb2af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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),