From 89a0b734f5516a07ec9576a2417cbd3bd3907c3c Mon Sep 17 00:00:00 2001 From: happywillow0 <45346080+happywillow0@users.noreply.github.com> Date: Tue, 22 Oct 2019 21:37:42 -0400 Subject: [PATCH] [Fix] MMRCMS - Add Headers (#1695) [Fix] MMRCMS - Add Headers --- src/all/mmrcms/build.gradle | 2 +- .../extension/all/mmrcms/MyMangaReaderCMSSource.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/all/mmrcms/build.gradle b/src/all/mmrcms/build.gradle index 76d04afb0..7ba0cab1a 100644 --- a/src/all/mmrcms/build.gradle +++ b/src/all/mmrcms/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: My Manga Reader CMS (Many sources)' pkgNameSuffix = 'all.mmrcms' extClass = '.MyMangaReaderCMSSources' - extVersionCode = 21 + extVersionCode = 22 libVersion = '1.2' } diff --git a/src/all/mmrcms/src/eu/kanade/tachiyomi/extension/all/mmrcms/MyMangaReaderCMSSource.kt b/src/all/mmrcms/src/eu/kanade/tachiyomi/extension/all/mmrcms/MyMangaReaderCMSSource.kt index c9edd24f4..edee118fd 100644 --- a/src/all/mmrcms/src/eu/kanade/tachiyomi/extension/all/mmrcms/MyMangaReaderCMSSource.kt +++ b/src/all/mmrcms/src/eu/kanade/tachiyomi/extension/all/mmrcms/MyMangaReaderCMSSource.kt @@ -31,7 +31,7 @@ class MyMangaReaderCMSSource(override val lang: String, override val client: OkHttpClient = network.cloudflareClient - override fun popularMangaRequest(page: Int) = GET("$baseUrl/filterList?page=$page&sortBy=views&asc=false") + override fun popularMangaRequest(page: Int) = GET("$baseUrl/filterList?page=$page&sortBy=views&asc=false", headers) override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request { //Query overrides everything val url: Uri.Builder @@ -43,10 +43,10 @@ class MyMangaReaderCMSSource(override val lang: String, filters.filterIsInstance() .forEach { it.addToUri(url) } } - return GET(url.toString()) + return GET(url.toString(), headers) } - override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/filterList?page=$page&sortBy=last_release&asc=false") + override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/filterList?page=$page&sortBy=last_release&asc=false", headers) override fun popularMangaParse(response: Response) = internalMangaParse(response) override fun searchMangaParse(response: Response): MangasPage {