[Ru]Mangahub. Chapters move to another page. Fix manga info (#10796)
This commit is contained in:
parent
87584795c5
commit
c73feb263a
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Mangahub'
|
extName = 'Mangahub'
|
||||||
pkgNameSuffix = 'ru.mangahub'
|
pkgNameSuffix = 'ru.mangahub'
|
||||||
extClass = '.Mangahub'
|
extClass = '.Mangahub'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -77,12 +77,16 @@ open class Mangahub : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector()
|
override fun searchMangaNextPageSelector(): String? = popularMangaNextPageSelector()
|
||||||
|
|
||||||
|
override fun chapterListRequest(manga: SManga): Request {
|
||||||
|
return GET(baseUrl + manga.url + "/chapters", headers)
|
||||||
|
}
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document): SManga {
|
override fun mangaDetailsParse(document: Document): SManga {
|
||||||
val manga = SManga.create()
|
val manga = SManga.create()
|
||||||
manga.author = document.select("a[itemprop]")?.text()
|
manga.author = document.select("div.detail-attr:contains(Автор) div:gt(0)")?.text() // TODO: Add "Сценарист" and "Художник"
|
||||||
manga.genre = document.select("div.tag").text().replace(" ", ", ")
|
manga.genre = document.select(".tags").text().replace(" ", ", ")
|
||||||
manga.description = document.select("div.markdown-style").text()
|
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")
|
manga.thumbnail_url = document.select("img.cover-detail").attr("src")
|
||||||
return manga
|
return manga
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue