From f03a5c9469e310b1c32f2bcab603b1fc8c3f05f1 Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Sun, 12 Jan 2020 11:49:05 -0500 Subject: [PATCH] Rawdevart pageListParse update (#2047) * pageListParse * Update build.gradle --- src/ja/rawdevart/build.gradle | 2 +- .../kanade/tachiyomi/extension/ja/rawdevart/Rawdevart.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ja/rawdevart/build.gradle b/src/ja/rawdevart/build.gradle index fe2332b7c..12c7307ab 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 = 2 + extVersionCode = 3 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 12301f4ab..1acab21e9 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,12 +210,12 @@ 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() - - document.select("img.img-fluid.not-lazy").forEachIndexed { i, img -> - pages.add(Page(i, "", img.attr("abs:data-src"))) + list.forEachIndexed { i, img -> + pages.add(Page(i, "", img)) } - return pages }