From c73feb263a9a79acb782635a434f4dba338a9e42 Mon Sep 17 00:00:00 2001 From: Pavka Date: Sat, 12 Feb 2022 19:38:35 +0300 Subject: [PATCH] [Ru]Mangahub. Chapters move to another page. Fix manga info (#10796) --- src/ru/mangahub/build.gradle | 2 +- .../kanade/tachiyomi/extension/ru/mangahub/Mangahub.kt | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ru/mangahub/build.gradle b/src/ru/mangahub/build.gradle index 3bd789ed6..9a3cc71a8 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 = 12 + extVersionCode = 13 } dependencies { 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 33256e596..53ab52137 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 @@ -77,12 +77,16 @@ open class Mangahub : ParsedHttpSource() { override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector() + override fun chapterListRequest(manga: SManga): Request { + return GET(baseUrl + manga.url + "/chapters", headers) + } + override fun mangaDetailsParse(document: Document): SManga { val manga = SManga.create() - manga.author = document.select("a[itemprop]")?.text() - manga.genre = document.select("div.tag").text().replace(" ", ", ") + manga.author = document.select("div.detail-attr:contains(Автор) div:gt(0)")?.text() // TODO: Add "Сценарист" and "Художник" + manga.genre = document.select(".tags").text().replace(" ", ", ") manga.description = document.select("div.markdown-style").text() - manga.status = parseStatus(document.select("div.sticky-top span.status-label").toString()) + manga.status = parseStatus(document.select("div.detail-attr:contains(перевод):eq(0)").toString()) manga.thumbnail_url = document.select("img.cover-detail").attr("src") return manga }