diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/Luscious.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/Luscious.kt index 3a06c6792..42755f397 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/Luscious.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/Luscious.kt @@ -257,10 +257,14 @@ abstract class Luscious( nextPage = data["info"]["has_next_page"].asBoolean data["items"].asJsonArray.map { val chapter = SChapter.create() - chapter.url = when (getResolutionPref()) { + val url = when (getResolutionPref()) { "-1" -> it["url_to_original"].asString else -> it["thumbnails"][getResolutionPref()?.toInt()!!]["url"].asString } + when { + url.startsWith("//") -> chapter.url = "https:$url" + else -> chapter.url = url + } chapter.chapter_number = it["position"].asInt.toFloat() chapter.name = chapter.chapter_number.toInt().toString() + " - " + it["title"].asString chapter.date_upload = "${it["created"].asLong}000".toLong() @@ -335,8 +339,10 @@ abstract class Luscious( "-1" -> it["url_to_original"].asString else -> it["thumbnails"][getResolutionPref()?.toInt()!!]["url"].asString } - - pages.add(Page(index, url, url)) + when { + url.startsWith("//") -> pages.add(Page(index, "https:$url", "https:$url")) + else -> pages.add(Page(index, url, url)) + } } if (nextPage) { val newPage = client.newCall(GET(buildAlbumPicturesPageUrl(id, page))).execute() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/LusciousGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/LusciousGenerator.kt index 82662f2c8..2d2bb76df 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/LusciousGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/luscious/LusciousGenerator.kt @@ -9,7 +9,7 @@ class LusciousGenerator : ThemeSourceGenerator { override val themeClass = "Luscious" - override val baseVersionCode: Int = 12 + override val baseVersionCode: Int = 13 override val sources = listOf( MultiLang("Luscious", "https://www.luscious.net", listOf("en", "ja", "es", "it", "de", "fr", "zh", "ko", "other", "pt-BR", "th", "all"), isNsfw = true, className = "LusciousFactory", overrideVersionCode = 2),