MangaMx: fix covers (#6317)

This commit is contained in:
scb261 2021-03-28 14:12:06 +03:00 committed by GitHub
parent c296117946
commit 9867ae9983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaMx'
pkgNameSuffix = 'es.mangamx'
extClass = '.MangaMx'
extVersionCode = 8
extVersionCode = 9
libVersion = '1.2'
}

View File

@ -46,7 +46,7 @@ open class MangaMx : ParsedHttpSource() {
override fun popularMangaSelector() = "#article-div a"
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
setUrlWithoutDomain(element.attr("href"))
thumbnail_url = element.select("img").attr("src")
thumbnail_url = element.select("img").attr("data-src")
title = element.select("div:eq(1)").text().trim()
}
@ -71,7 +71,7 @@ open class MangaMx : ParsedHttpSource() {
override fun latestUpdatesNextPageSelector(): String? = popularMangaNextPageSelector()
override fun latestUpdatesSelector() = "div._1bJU3"
override fun latestUpdatesFromElement(element: Element): SManga = SManga.create().apply {
thumbnail_url = element.select("img").attr("src")
thumbnail_url = element.select("img").attr("data-src")
element.select("div a").apply {
title = this.text().trim()
setUrlWithoutDomain(this.attr("href"))