mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 11:42:47 +01:00
COLAMANGA: fix unencrypted image error (#269)
This commit is contained in:
parent
7a3b62e790
commit
76d896a11a
@ -6,7 +6,7 @@ ext {
|
||||
extName = 'COLAMANGA'
|
||||
pkgNameSuffix = 'zh.onemanhua'
|
||||
extClass = '.Onemanhua'
|
||||
extVersionCode = 13
|
||||
extVersionCode = 14
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user