From 2fb79d4a2c0a8c740481fdbf0308ec1924338ebb Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Wed, 2 Jun 2021 20:48:15 -0300 Subject: [PATCH] Fix referer in MangaDex. (#7397) --- src/all/mangadex/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index 4eaa35036..568d1b57d 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangaDexFactory' - extVersionCode = 116 + extVersionCode = 117 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt index bc9023249..67a4da80b 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDex.kt @@ -47,7 +47,7 @@ abstract class MangaDex(override val lang: String, val dexLang: String) : private val helper = MangaDexHelper() override fun headersBuilder() = Headers.Builder() - .add("Referer", "$baseUrl/") + .add("Referer", "https://mangadex.org/") .add("User-Agent", "Tachiyomi " + System.getProperty("http.agent")) override val client = network.client.newBuilder()