COLAMANGA: fix unencrypted image error (#269)
This commit is contained in:
parent
3e22055a7a
commit
f8e98da8a6
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'COLAMANGA'
|
extName = 'COLAMANGA'
|
||||||
pkgNameSuffix = 'zh.onemanhua'
|
pkgNameSuffix = 'zh.onemanhua'
|
||||||
extClass = '.Onemanhua'
|
extClass = '.Onemanhua'
|
||||||
extVersionCode = 13
|
extVersionCode = 14
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -437,7 +437,11 @@ class Onemanhua : ConfigurableSource, ParsedHttpSource() {
|
|||||||
if (imageUrl.startsWith("//")) {
|
if (imageUrl.startsWith("//")) {
|
||||||
imageUrl = "https:$imageUrl"
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user