ReadM - fix latest (#3307)

This commit is contained in:
Mike 2020-05-25 02:28:18 -04:00 committed by GitHub
parent 9f248e849c
commit 34a1f446ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: ReadM'
pkgNameSuffix = 'en.readm'
extClass = '.ReadM'
extVersionCode = 2
extVersionCode = 3
libVersion = '1.2'
}

View File

@ -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")
}