diff --git a/src/ru/mangahub/build.gradle b/src/ru/mangahub/build.gradle index 8869027d6..4e3bc4b7a 100644 --- a/src/ru/mangahub/build.gradle +++ b/src/ru/mangahub/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Mangahub' pkgNameSuffix = 'ru.mangahub' extClass = '.Mangahub' - extVersionCode = 16 + extVersionCode = 17 } apply from: "$rootDir/common.gradle" diff --git a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt index 18d28c412..9f38d72fa 100644 --- a/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt +++ b/src/ru/mangahub/src/eu/kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt @@ -57,7 +57,7 @@ open class Mangahub : ParsedHttpSource() { override fun popularMangaFromElement(element: Element): SManga { 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.setUrlWithoutDomain(element.select("a.fw-medium").attr("href")) return manga @@ -88,10 +88,10 @@ open class Mangahub : ParsedHttpSource() { override fun mangaDetailsParse(document: Document): SManga { val manga = SManga.create() 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.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 }