[RU] MangaClub: Fixed the incorrect title appearing (#10483)
This commit is contained in:
parent
b9bd7726f8
commit
f2fc5a98e1
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'MangaClub'
|
extName = 'MangaClub'
|
||||||
pkgNameSuffix = 'ru.mangaclub'
|
pkgNameSuffix = 'ru.mangaclub'
|
||||||
extClass = '.Mangaclub'
|
extClass = '.Mangaclub'
|
||||||
extVersionCode = 3
|
extVersionCode = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Mangaclub : ParsedHttpSource() {
|
||||||
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
||||||
thumbnail_url = element.select("img").attr("abs:src")
|
thumbnail_url = element.select("img").attr("abs:src")
|
||||||
element.select(".title > a").apply {
|
element.select(".title > a").apply {
|
||||||
title = this.text().substringBefore("/").trim()
|
title = this.text().trim()
|
||||||
setUrlWithoutDomain(this.attr("abs:href"))
|
setUrlWithoutDomain(this.attr("abs:href"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ class Mangaclub : ParsedHttpSource() {
|
||||||
// Details
|
// Details
|
||||||
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {
|
override fun mangaDetailsParse(document: Document): SManga = SManga.create().apply {
|
||||||
thumbnail_url = document.select("div.image img").attr("abs:src")
|
thumbnail_url = document.select("div.image img").attr("abs:src")
|
||||||
title = document.select(".title").text().substringBefore("/").trim()
|
title = document.select("div.info>div>strong").text().trim()
|
||||||
author = document.select("a[href*=author]").text().trim()
|
author = document.select("a[href*=author]").text().trim()
|
||||||
artist = author
|
artist = author
|
||||||
status = when (document.select("a[href*=status_translation]")?.first()?.text()) {
|
status = when (document.select("a[href*=status_translation]")?.first()?.text()) {
|
||||||
|
|
Loading…
Reference in New Issue