[RU]Mangahub fix covers (#15977)

This commit is contained in:
Eshlender 2023-04-06 17:21:20 +05:00 committed by GitHub
parent 73e38b0f3f
commit 9edb1a7599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Mangahub' extName = 'Mangahub'
pkgNameSuffix = 'ru.mangahub' pkgNameSuffix = 'ru.mangahub'
extClass = '.Mangahub' extClass = '.Mangahub'
extVersionCode = 16 extVersionCode = 17
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

View File

@ -57,7 +57,7 @@ open class Mangahub : ParsedHttpSource() {
override fun popularMangaFromElement(element: Element): SManga { override fun popularMangaFromElement(element: Element): SManga {
val manga = SManga.create() val manga = SManga.create()
manga.thumbnail_url = baseUrl + element.select("div.fast-view-layer-scale").attr("data-background-image") manga.thumbnail_url = element.select("div.fast-view-layer-scale").attr("data-background-image")
manga.title = element.select("a.fw-medium").text() manga.title = element.select("a.fw-medium").text()
manga.setUrlWithoutDomain(element.select("a.fw-medium").attr("href")) manga.setUrlWithoutDomain(element.select("a.fw-medium").attr("href"))
return manga return manga
@ -88,10 +88,10 @@ open class Mangahub : ParsedHttpSource() {
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
val manga = SManga.create() val manga = SManga.create()
manga.author = document.select("div.detail-attr:contains(Автор) div:gt(0)").text() // TODO: Add "Сценарист" and "Художник" manga.author = document.select("div.detail-attr:contains(Автор) div:gt(0)").text() // TODO: Add "Сценарист" and "Художник"
manga.genre = document.select(".tags").text().replace(" ", ", ") manga.genre = document.select(".tags a").joinToString { it.text() }
manga.description = document.select("div.markdown-style").text() manga.description = document.select("div.markdown-style").text()
manga.status = parseStatus(document.select("div.detail-attr:contains(перевод):eq(0)").toString()) manga.status = parseStatus(document.select("div.detail-attr:contains(перевод):eq(0)").toString())
manga.thumbnail_url = baseUrl + document.select("img.cover-detail").attr("src") manga.thumbnail_url = document.select("img.cover-detail").attr("src")
return manga return manga
} }