From e7b40496ef21017bbebcc33a4638d84cf1be98f3 Mon Sep 17 00:00:00 2001 From: Mike <51273546+SnakeDoc83@users.noreply.github.com> Date: Fri, 7 Aug 2020 20:27:24 -0400 Subject: [PATCH] WP Mangastream - add Manga Pro Z (#4043) --- src/all/wpmangastream/build.gradle | 2 +- .../extension/all/wpmangastream/WPMangaStreamFactory.kt | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/all/wpmangastream/build.gradle b/src/all/wpmangastream/build.gradle index d6ca3be9c..e8e9c3351 100644 --- a/src/all/wpmangastream/build.gradle +++ b/src/all/wpmangastream/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'WP Mangstream (multiple sources)' pkgNameSuffix = 'all.wpmangastream' extClass = '.WPMangaStreamFactory' - extVersionCode = 20 + extVersionCode = 21 libVersion = '1.2' } diff --git a/src/all/wpmangastream/src/eu/kanade/tachiyomi/extension/all/wpmangastream/WPMangaStreamFactory.kt b/src/all/wpmangastream/src/eu/kanade/tachiyomi/extension/all/wpmangastream/WPMangaStreamFactory.kt index a3788c4e1..965ba4233 100644 --- a/src/all/wpmangastream/src/eu/kanade/tachiyomi/extension/all/wpmangastream/WPMangaStreamFactory.kt +++ b/src/all/wpmangastream/src/eu/kanade/tachiyomi/extension/all/wpmangastream/WPMangaStreamFactory.kt @@ -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") } +}