Skip to content

Commit

Permalink
COLAMANGA: fix unencrypted image error (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 authored and cuong-tran committed Jan 15, 2024
1 parent 1397617 commit e879a60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/zh/onemanhua/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ext {
extName = 'COLAMANGA'
pkgNameSuffix = 'zh.onemanhua'
extClass = '.Onemanhua'
extVersionCode = 13
extVersionCode = 14
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit e879a60

Please sign in to comment.