From d4dbf1d63ff75fb56e1caae112a91ae0d170e3bc Mon Sep 17 00:00:00 2001 From: E3FxGaming <8276268+E3FxGaming@users.noreply.github.com> Date: Wed, 29 Apr 2020 12:03:39 +0200 Subject: [PATCH] Implemented MangaMx Cloudflare fix (#2926) Manga-mx.com uses Cloudflare. Using the Cloudflare client makes it usable again. --- src/es/mangamx/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/es/mangamx/build.gradle b/src/es/mangamx/build.gradle index c0d23d06f..ea8fdca84 100644 --- a/src/es/mangamx/build.gradle +++ b/src/es/mangamx/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: MangaMx & Doujin-Yang' pkgNameSuffix = 'es.mangamx' extClass = '.MangaMx' - extVersionCode = 6 + extVersionCode = 7 libVersion = '1.2' } diff --git a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt index 261670608..2eb363513 100644 --- a/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt +++ b/src/es/mangamx/src/eu/kanade/tachiyomi/extension/es/mangamx/MangaMx.kt @@ -31,6 +31,8 @@ open class MangaMx : ParsedHttpSource() { override val baseUrl = "https://manga-mx.com" override val lang = "es" override val supportsLatest = true + override val client = network.cloudflareClient + private var csrfToken = "" // Popular