WP Mangastream - update Komiktap (#3618)

This commit is contained in:
Mike 2020-06-25 23:46:01 -04:00 committed by GitHub
parent e99a2bf59e
commit 33f763e157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'WP Mangstream (multiple sources)'
pkgNameSuffix = 'all.wpmangastream'
extClass = '.WPMangaStreamFactory'
extVersionCode = 16
extVersionCode = 17
libVersion = '1.2'
}

View File

@ -155,7 +155,7 @@ abstract class WPMangaStream(
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
override fun latestUpdatesFromElement(element: Element): SManga = popularMangaFromElement(element)
override fun popularMangaNextPageSelector() = "a.next.page-numbers"
override fun popularMangaNextPageSelector(): String? = "a.next.page-numbers"
override fun latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()

View File

@ -615,10 +615,21 @@ class SekteDoujin : WPMangaStream("Sekte Doujin", "https://sektedoujin.com", "id
class NonStopScans : WPMangaStream("Non-Stop Scans", "https://www.nonstopscans.com", "en")
class KomikTap : WPMangaStream("KomikTap", "https://komiktap.xyz", "id") {
override fun popularMangaRequest(page: Int) = GET("$baseUrl/manga/?page=$page&order=popular", headers)
override fun popularMangaNextPageSelector() = "a.r"
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/manga/?page=$page&order=update", headers)
class KomikTap : WPMangaStream("KomikTap", "https://komiktap.us", "id") {
override fun popularMangaRequest(page: Int) = GET("$baseUrl/project/", headers)
override fun popularMangaNextPageSelector(): String? = null
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/?page=$page", headers)
override fun latestUpdatesSelector() = "div.releases:contains(latest update) + div div.uta"
override fun latestUpdatesFromElement(element: Element): SManga {
return SManga.create().apply {
element.select("div.luf > a").let {
title = it.text()
setUrlWithoutDomain(it.attr("href"))
}
thumbnail_url = element.select("img").attr("abs:src")
}
}
override fun latestUpdatesNextPageSelector() = "div.hpage a.r"
// Source's search is semi-broken, filtered search returns "no results" for page > 1
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/cari-manga/$query/page/$page/")
override fun searchMangaNextPageSelector() = "a.next.page-numbers"