COLAMANGA: fix unencrypted image error (#269)

This commit is contained in:
uy/sun 2024-01-15 18:30:00 +08:00 committed by GitHub
parent 7a3b62e790
commit 76d896a11a
2 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'COLAMANGA'
pkgNameSuffix = 'zh.onemanhua'
extClass = '.Onemanhua'
extVersionCode = 13
extVersionCode = 14
}
dependencies {

View File

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