BatCave: Fix page url (#7529)

fix: page url
This commit is contained in:
Hellkaros 2025-02-06 10:27:02 -03:00 committed by Draff
parent 4154954883
commit 40efcf1be8
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'BatCave'
extClass = '.BatCave'
extVersionCode = 1
extVersionCode = 2
}
apply from: "$rootDir/common.gradle"

View File

@ -221,7 +221,8 @@ class BatCave : HttpSource() {
.parseAs<Images>()
return data.images.mapIndexed { idx, img ->
Page(idx, imageUrl = baseUrl + img.trim())
val imageUrl = if (img.startsWith("https")) img.trim() else baseUrl + img.trim()
Page(idx, imageUrl = imageUrl)
}
}