[RU] MangaClub: Fixed the incorrect title appearing (#10483)

This commit is contained in:
Román 2022-01-18 12:49:27 +00:00 committed by GitHub
parent b9bd7726f8
commit f2fc5a98e1
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 = '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"

View File

@ -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()) {