WP Mangastream - add Manga Pro Z (#4043)
This commit is contained in:
parent
613ebc2aaf
commit
e7b40496ef
|
@ -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 = 20
|
extVersionCode = 21
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,8 @@ class WPMangaStreamFactory : SourceFactory {
|
||||||
Matakomik(),
|
Matakomik(),
|
||||||
KomikindoCo(),
|
KomikindoCo(),
|
||||||
ReadKomik(),
|
ReadKomik(),
|
||||||
MangaP()
|
MangaP(),
|
||||||
|
MangaProZ()
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,3 +662,9 @@ class MangaP : WPMangaStream("MangaP", "https://mangap.me", "ar") {
|
||||||
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=popular", headers)
|
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=popular", headers)
|
||||||
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=update", headers)
|
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=update", headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class MangaProZ : WPMangaStream("Manga Pro Z", "https://mangaproz.com", "ar") {
|
||||||
|
override fun popularMangaRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=popular", headers)
|
||||||
|
override fun latestUpdatesRequest(page: Int): Request = GET("$baseUrl/manga/?page=$page&order=update", headers)
|
||||||
|
override fun chapterFromElement(element: Element): SChapter = super.chapterFromElement(element).apply { name = name.removeSuffix(" free") }
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue