From c3cc08a1332f34ba69c5bbc97b07a835e6a7478b Mon Sep 17 00:00:00 2001 From: Chris Allan Date: Fri, 28 Feb 2020 04:14:48 -0800 Subject: [PATCH] Fix Rawdevart (#2306) Update Rawdevart --- src/ja/rawdevart/build.gradle | 2 +- .../kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/ja/rawdevart/build.gradle b/src/ja/rawdevart/build.gradle index 12c7307ab..726228599 100644 --- a/src/ja/rawdevart/build.gradle +++ b/src/ja/rawdevart/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: Rawdevart' pkgNameSuffix = 'ja.rawdevart' extClass = '.Rawdevart' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt b/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt index 1acab21e9..7b5386975 100644 --- a/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt +++ b/src/ja/rawdevart/src/eu/kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt @@ -210,11 +210,9 @@ class Rawdevart : ParsedHttpSource() { } override fun pageListParse(document: Document): List { - val script = document.select("script:containsData(const pages)").html() - val list = script.substringAfter("const pages = [\"").substringBefore("\",]").split("\",\"") - val pages = mutableListOf() - list.forEachIndexed { i, img -> - pages.add(Page(i, "", img)) + var pages = mutableListOf() + document.select("img.not-lazy[data-src]").forEachIndexed { i, img -> + pages.add(Page(i, "", img.attr("data-src"))) } return pages }