COLAMANGA: fix unencrypted image error (#269)

This commit is contained in:
uy/sun 2024-01-15 18:30:00 +08:00 committed by Draff
parent 3e22055a7a
commit f8e98da8a6
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)
}
}