parent
7806e14938
commit
d6b90e70c7
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'Yugen Mangás'
|
extName = 'Yugen Mangás'
|
||||||
pkgNameSuffix = 'pt.yugenmangas'
|
pkgNameSuffix = 'pt.yugenmangas'
|
||||||
extClass = '.YugenMangas'
|
extClass = '.YugenMangas'
|
||||||
extVersionCode = 34
|
extVersionCode = 35
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -50,7 +50,7 @@ class YugenMangas : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun popularMangaRequest(page: Int): Request = GET(baseUrl, headers)
|
override fun popularMangaRequest(page: Int): Request = GET(baseUrl, headers)
|
||||||
|
|
||||||
override fun popularMangaSelector(): String = "div.container-popular div.swiper-wrapper a"
|
override fun popularMangaSelector(): String = "div.popular div.swiper-wrapper a"
|
||||||
|
|
||||||
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
override fun popularMangaFromElement(element: Element): SManga = SManga.create().apply {
|
||||||
title = element.selectFirst("h1")!!.text()
|
title = element.selectFirst("h1")!!.text()
|
||||||
|
@ -121,7 +121,7 @@ class YugenMangas : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("div.chapter-content img.chapter-image")
|
return document.select("div.chapter-images > img[src]")
|
||||||
.mapIndexed { index, element ->
|
.mapIndexed { index, element ->
|
||||||
Page(index, document.location(), element.absUrl("src"))
|
Page(index, document.location(), element.absUrl("src"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue