WP Comics add mangasum RAW (#5411)
This commit is contained in:
parent
36011b3c51
commit
24159ea8f1
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'WP-Comics'
|
extName = 'WP-Comics'
|
||||||
pkgNameSuffix = 'all.wpcomics'
|
pkgNameSuffix = 'all.wpcomics'
|
||||||
extClass = '.WPComicsFactory'
|
extClass = '.WPComicsFactory'
|
||||||
extVersionCode = 18
|
extVersionCode = 19
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ class WPComicsFactory : SourceFactory {
|
||||||
override fun createSources(): List<Source> = listOf(
|
override fun createSources(): List<Source> = listOf(
|
||||||
ManhuaES(),
|
ManhuaES(),
|
||||||
MangaSum(),
|
MangaSum(),
|
||||||
|
MangaSumRAW(),
|
||||||
XoxoComics(),
|
XoxoComics(),
|
||||||
NhatTruyen(),
|
NhatTruyen(),
|
||||||
NetTruyen(),
|
NetTruyen(),
|
||||||
|
@ -44,6 +45,16 @@ private class ManhuaES : WPComics("Manhua ES", "https://manhuaes.com", "en", Sim
|
||||||
override val pageListSelector = "div.chapter-detail ul img, div.chapter-detail div:not(.container) > img, div.chapter-detail p > img"
|
override val pageListSelector = "div.chapter-detail ul img, div.chapter-detail div:not(.container) > img, div.chapter-detail p > img"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private class MangaSumRAW : WPComics("MangaSum RAW", "https://mangasum.com", "ja", SimpleDateFormat("MM/dd/yy", Locale.US), null) {
|
||||||
|
override fun popularMangaRequest(page: Int): Request {
|
||||||
|
return GET("$baseUrl/raw" + if (page > 1) "?page=$page" else "", headers)
|
||||||
|
}
|
||||||
|
override fun popularMangaSelector() = "div.items div.item"
|
||||||
|
override fun latestUpdatesRequest(page: Int) = popularMangaRequest(page)
|
||||||
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/genres?keyword=$query&page=$page", headers)
|
||||||
|
override fun searchMangaSelector() = "div.items div.item div.image a[title*=' - Raw']"
|
||||||
|
}
|
||||||
|
|
||||||
private class MangaSum : WPComics("MangaSum", "https://mangasum.com", "en", SimpleDateFormat("MM/dd/yy", Locale.US), null) {
|
private class MangaSum : WPComics("MangaSum", "https://mangasum.com", "en", SimpleDateFormat("MM/dd/yy", Locale.US), null) {
|
||||||
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/genres?keyword=$query&page=$page", headers)
|
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request = GET("$baseUrl/genres?keyword=$query&page=$page", headers)
|
||||||
override fun searchMangaSelector() = "div.items div.item div.image a:not([title*=' - Raw'])"
|
override fun searchMangaSelector() = "div.items div.item div.image a:not([title*=' - Raw'])"
|
||||||
|
|
Loading…
Reference in New Issue