diff --git a/src/en/reaperscans/build.gradle b/src/en/reaperscans/build.gradle index d2221c1e6..f6d92d68d 100644 --- a/src/en/reaperscans/build.gradle +++ b/src/en/reaperscans/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Reaper Scans' pkgNameSuffix = 'en.reaperscans' extClass = '.ReaperScans' - extVersionCode = 42 + extVersionCode = 43 } apply from: "$rootDir/common.gradle" diff --git a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt index 55f2ab0d2..98a0c4554 100644 --- a/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt +++ b/src/en/reaperscans/src/eu/kanade/tachiyomi/extension/en/reaperscans/ReaperScans.kt @@ -276,8 +276,9 @@ class ReaperScans : ParsedHttpSource() { // Page override fun pageListParse(document: Document): List { + document.select("noscript").remove() return document.select("img.max-w-full").mapIndexed { index, element -> - Page(index, imageUrl = element.attr("abs:src")) + Page(index, imageUrl = element.imgAttr()) } } @@ -325,6 +326,13 @@ class ReaperScans : ParsedHttpSource() { } } + fun Element.imgAttr(): String = when { + hasAttr("data-lazy-src") -> attr("abs:data-lazy-src") + hasAttr("data-src") -> attr("abs:data-src") + hasAttr("data-cfsrc") -> attr("abs:data-cfsrc") + else -> attr("abs:src") + } + // Unused override fun searchMangaNextPageSelector() = throw UnsupportedOperationException("Not Used")