diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index e2acb77e5..4eaa35036 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 = 115 + extVersionCode = 116 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 09a976e94..bc9023249 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 @@ -46,15 +46,15 @@ abstract class MangaDex(override val lang: String, val dexLang: String) : private val helper = MangaDexHelper() - override fun headersBuilder() = Headers.Builder().apply { - add("User-Agent", "Tachiyomi " + System.getProperty("http.agent")) - } + override fun headersBuilder() = Headers.Builder() + .add("Referer", "$baseUrl/") + .add("User-Agent", "Tachiyomi " + System.getProperty("http.agent")) - override val client = - network.client.newBuilder().addNetworkInterceptor(mdRateLimitInterceptor).addInterceptor( - coverInterceptor - ).addInterceptor(MdAtHomeReportInterceptor(network.client, headersBuilder().build())) - .build() + override val client = network.client.newBuilder() + .addNetworkInterceptor(mdRateLimitInterceptor) + .addInterceptor(coverInterceptor) + .addInterceptor(MdAtHomeReportInterceptor(network.client, headersBuilder().build())) + .build() // POPULAR Manga Section