From 34a1f446ea27e83683bbe5834b98d5adcd636b1d Mon Sep 17 00:00:00 2001 From: Mike <51273546+SnakeDoc83@users.noreply.github.com> Date: Mon, 25 May 2020 02:28:18 -0400 Subject: [PATCH] ReadM - fix latest (#3307) --- src/en/readm/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/en/readm/build.gradle b/src/en/readm/build.gradle index 1acb5af20..8c93375b7 100644 --- a/src/en/readm/build.gradle +++ b/src/en/readm/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: ReadM' pkgNameSuffix = 'en.readm' extClass = '.ReadM' - extVersionCode = 2 + extVersionCode = 3 libVersion = '1.2' } diff --git a/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt b/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt index 0ed9949ce..2aa533a26 100644 --- a/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt +++ b/src/en/readm/src/eu/kanade/tachiyomi/extension/en/readm/ReadM.kt @@ -47,10 +47,10 @@ class ReadM : ParsedHttpSource() { override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/latest-releases/$page", headers) override fun latestUpdatesNextPageSelector(): String? = popularMangaNextPageSelector() - override fun latestUpdatesSelector(): String = "ul.latest-updates li" + override fun latestUpdatesSelector(): String = "ul.latest-updates > li" override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply { - thumbnail_url = element.select("img").attr("data-src") - element.select("a").first().apply { + thumbnail_url = element.select("img").attr("abs:data-src") + element.select("h2 a").first().apply { title = this.text().trim() url = this.attr("href") }