From 99fce4c23e399de810297763be78bdabad6a2111 Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Mon, 26 Nov 2018 05:23:19 -0500 Subject: [PATCH] Fixes MyReadingManga selector and jpeg thumbnails (#639) Fixes MyReadingManga selector and jpeg thumbnails --- src/all/myreadingmanga/build.gradle | 2 +- .../tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/all/myreadingmanga/build.gradle b/src/all/myreadingmanga/build.gradle index 234eb71af..ad0c0403e 100644 --- a/src/all/myreadingmanga/build.gradle +++ b/src/all/myreadingmanga/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MyReadingManga' pkgNameSuffix = 'all.myreadingmanga' extClass = '.MyReadingMangaFactory' - extVersionCode = 15 + extVersionCode = 16 libVersion = '1.2' } diff --git a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt index b1ceabf11..22987b146 100644 --- a/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt +++ b/src/all/myreadingmanga/src/eu/kanade/tachiyomi/extension/all/myreadingmanga/MyReadingManga.kt @@ -92,7 +92,7 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { var url = when { element.attr("data-src").endsWith(".jpg") || element.attr("data-src").endsWith(".png") || element.attr("data-src").endsWith(".jpeg") -> element.attr("data-src") - element.attr("src").endsWith(".jpg") || element.attr("src").endsWith(".png") || element.attr("data-src").endsWith(".jpeg") -> element.attr("src") + element.attr("src").endsWith(".jpg") || element.attr("src").endsWith(".png") || element.attr("src").endsWith(".jpeg") -> element.attr("src") else -> element.attr("data-lazy-src") } if (url.startsWith("//")) { @@ -163,7 +163,7 @@ open class MyReadingManga(override val lang: String) : ParsedHttpSource() { override fun pageListParse(response: Response): List { val body = response.asJsoup() val pages = mutableListOf() - val elements = body.select("[data-lazyloaded='1']:not([width='120']):not([data-original-width='300'])") + val elements = body.select("[data-original-width]:not([width='120']):not([data-original-width='300'])") for (i in 0 until elements.size) { pages.add(Page(i, "", getImage(elements[i]))) }