diff --git a/src/pt/temakimangas/build.gradle b/src/pt/temakimangas/build.gradle new file mode 100644 index 000000000..a8f4896df --- /dev/null +++ b/src/pt/temakimangas/build.gradle @@ -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" diff --git a/src/pt/temakimangas/res/mipmap-hdpi/ic_launcher.png b/src/pt/temakimangas/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..785272afb Binary files /dev/null and b/src/pt/temakimangas/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/pt/temakimangas/res/mipmap-mdpi/ic_launcher.png b/src/pt/temakimangas/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..79a992ed7 Binary files /dev/null and b/src/pt/temakimangas/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/pt/temakimangas/res/mipmap-xhdpi/ic_launcher.png b/src/pt/temakimangas/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..4e71116f1 Binary files /dev/null and b/src/pt/temakimangas/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/pt/temakimangas/res/mipmap-xxhdpi/ic_launcher.png b/src/pt/temakimangas/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..a2d79d06e Binary files /dev/null and b/src/pt/temakimangas/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/pt/temakimangas/res/mipmap-xxxhdpi/ic_launcher.png b/src/pt/temakimangas/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..08bf1cfd5 Binary files /dev/null and b/src/pt/temakimangas/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/pt/temakimangas/src/eu/kanade/tachiyomi/extension/pt/temakimangas/TemakiMangas.kt b/src/pt/temakimangas/src/eu/kanade/tachiyomi/extension/pt/temakimangas/TemakiMangas.kt new file mode 100644 index 000000000..c76a877dc --- /dev/null +++ b/src/pt/temakimangas/src/eu/kanade/tachiyomi/extension/pt/temakimangas/TemakiMangas.kt @@ -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" +}