ReaperScans: use absolute src to handle cloudflare mirage links (#14813)
* fix reaperscans image links * update extVersionCode * fix extra slash * use absolute src
This commit is contained in:
parent
e6f2cc1da7
commit
79a5a0f948
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Reaper Scans'
|
extName = 'Reaper Scans'
|
||||||
pkgNameSuffix = 'en.reaperscans'
|
pkgNameSuffix = 'en.reaperscans'
|
||||||
extClass = '.ReaperScans'
|
extClass = '.ReaperScans'
|
||||||
extVersionCode = 40
|
extVersionCode = 41
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -276,7 +276,7 @@ class ReaperScans : ParsedHttpSource() {
|
||||||
// Page
|
// Page
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("img.max-w-full").mapIndexed { index, element ->
|
return document.select("img.max-w-full").mapIndexed { index, element ->
|
||||||
Page(index, imageUrl = element.attr("src"))
|
Page(index, imageUrl = element.attr("abs:src"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue