diff --git a/src/zh/onemanhua/build.gradle b/src/zh/onemanhua/build.gradle index 3526781a6..16bc1d81e 100644 --- a/src/zh/onemanhua/build.gradle +++ b/src/zh/onemanhua/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'COLAMANGA' pkgNameSuffix = 'zh.onemanhua' extClass = '.Onemanhua' - extVersionCode = 13 + extVersionCode = 14 } dependencies { diff --git a/src/zh/onemanhua/src/eu/kanade/tachiyomi/extension/zh/onemanhua/Onemanhua.kt b/src/zh/onemanhua/src/eu/kanade/tachiyomi/extension/zh/onemanhua/Onemanhua.kt index 9edb725f0..074ea8fc1 100644 --- a/src/zh/onemanhua/src/eu/kanade/tachiyomi/extension/zh/onemanhua/Onemanhua.kt +++ b/src/zh/onemanhua/src/eu/kanade/tachiyomi/extension/zh/onemanhua/Onemanhua.kt @@ -437,7 +437,11 @@ class Onemanhua : ConfigurableSource, ParsedHttpSource() { if (imageUrl.startsWith("//")) { imageUrl = "https:$imageUrl" } - Page(i, imageUrl = imageUrl + "#key=$key") + // Empty key means image is not encrypted + if (key != "") { + imageUrl = "$imageUrl#key=$key" + } + Page(i, imageUrl = imageUrl) } }