WP Mangastream - update Komiktap (#3618)
This commit is contained in:
parent
e99a2bf59e
commit
33f763e157
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'WP Mangstream (multiple sources)'
|
extName = 'WP Mangstream (multiple sources)'
|
||||||
pkgNameSuffix = 'all.wpmangastream'
|
pkgNameSuffix = 'all.wpmangastream'
|
||||||
extClass = '.WPMangaStreamFactory'
|
extClass = '.WPMangaStreamFactory'
|
||||||
extVersionCode = 16
|
extVersionCode = 17
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -155,7 +155,7 @@ abstract class WPMangaStream(
|
||||||
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
|
override fun searchMangaFromElement(element: Element): SManga = popularMangaFromElement(element)
|
||||||
override fun latestUpdatesFromElement(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 latestUpdatesNextPageSelector() = popularMangaNextPageSelector()
|
||||||
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
|
override fun searchMangaNextPageSelector() = popularMangaNextPageSelector()
|
||||||
|
|
||||||
|
|
|
@ -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 NonStopScans : WPMangaStream("Non-Stop Scans", "https://www.nonstopscans.com", "en")
|
||||||
|
|
||||||
class KomikTap : WPMangaStream("KomikTap", "https://komiktap.xyz", "id") {
|
class KomikTap : WPMangaStream("KomikTap", "https://komiktap.us", "id") {
|
||||||
override fun popularMangaRequest(page: Int) = GET("$baseUrl/manga/?page=$page&order=popular", headers)
|
override fun popularMangaRequest(page: Int) = GET("$baseUrl/project/", headers)
|
||||||
override fun popularMangaNextPageSelector() = "a.r"
|
override fun popularMangaNextPageSelector(): String? = null
|
||||||
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/manga/?page=$page&order=update", headers)
|
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
|
// 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 searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/cari-manga/$query/page/$page/")
|
||||||
override fun searchMangaNextPageSelector() = "a.next.page-numbers"
|
override fun searchMangaNextPageSelector() = "a.next.page-numbers"
|
||||||
|
|
Loading…
Reference in New Issue