Add TemakiMangas (#7087)
This commit is contained in:
parent
3bea2c543e
commit
8d91fc6551
|
@ -0,0 +1,9 @@
|
||||||
|
ext {
|
||||||
|
extName = 'Temaki mangás'
|
||||||
|
extClass = '.TemakiMangas'
|
||||||
|
themePkg = 'zeistmanga'
|
||||||
|
baseUrl = 'https://temakimangas.blogspot.com'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.pt.temakimangas
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import eu.kanade.tachiyomi.util.asJsoup
|
||||||
|
import okhttp3.Response
|
||||||
|
|
||||||
|
class TemakiMangas : ZeistManga(
|
||||||
|
"Temaki mangás",
|
||||||
|
"https://temakimangas.blogspot.com",
|
||||||
|
"pt-BR",
|
||||||
|
) {
|
||||||
|
override val popularMangaSelector = "#PopularPosts2 article"
|
||||||
|
override val popularMangaSelectorTitle = "h3"
|
||||||
|
override val popularMangaSelectorUrl = "h3 a"
|
||||||
|
|
||||||
|
override fun mangaDetailsParse(response: Response) = SManga.create().apply {
|
||||||
|
val document = response.asJsoup()
|
||||||
|
val header = document.selectFirst("header")!!
|
||||||
|
description = document.selectFirst("#synopsis")?.text()
|
||||||
|
thumbnail_url = header.selectFirst(".thumb")?.absUrl("src")
|
||||||
|
title = header.selectFirst("h1")!!.text()
|
||||||
|
header.selectFirst("[data-status]")?.text()?.let {
|
||||||
|
status = when (it.lowercase()) {
|
||||||
|
"dropado" -> SManga.CANCELLED
|
||||||
|
"finalizada" -> SManga.COMPLETED
|
||||||
|
else -> SManga.UNKNOWN
|
||||||
|
}
|
||||||
|
}
|
||||||
|
genre = document.select("dt:contains(Genre) + dd a").joinToString { it.ownText() }
|
||||||
|
}
|
||||||
|
|
||||||
|
override val pageListSelector = "#reader div.separator"
|
||||||
|
}
|
Loading…
Reference in New Issue