WP Mangastream - add Manga Pro Z (#4043)

This commit is contained in:
Mike 2020-08-07 20:27:24 -04:00 committed by GitHub
parent 613ebc2aaf
commit e7b40496ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -41,7 +41,8 @@ class WPMangaStreamFactory : SourceFactory {
Matakomik(),
KomikindoCo(),
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 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") }
}