ReadM - fix latest (#3307)
This commit is contained in:
parent
9f248e849c
commit
34a1f446ea
|
@ -5,7 +5,7 @@ ext {
|
||||||
appName = 'Tachiyomi: ReadM'
|
appName = 'Tachiyomi: ReadM'
|
||||||
pkgNameSuffix = 'en.readm'
|
pkgNameSuffix = 'en.readm'
|
||||||
extClass = '.ReadM'
|
extClass = '.ReadM'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,10 +47,10 @@ class ReadM : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/latest-releases/$page", headers)
|
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/latest-releases/$page", headers)
|
||||||
override fun latestUpdatesNextPageSelector(): String? = popularMangaNextPageSelector()
|
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 {
|
override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply {
|
||||||
thumbnail_url = element.select("img").attr("data-src")
|
thumbnail_url = element.select("img").attr("abs:data-src")
|
||||||
element.select("a").first().apply {
|
element.select("h2 a").first().apply {
|
||||||
title = this.text().trim()
|
title = this.text().trim()
|
||||||
url = this.attr("href")
|
url = this.attr("href")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue