From acc06d0133837ef0eed5a8d0c9b58eae57e391e9 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Fri, 4 Feb 2022 15:41:48 +0000 Subject: [PATCH] MadTheme: remove custom User-Agent (#10697) --- .../main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt | 1 - .../eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt index b477f6ee5..6153ad625 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadTheme.kt @@ -34,7 +34,6 @@ abstract class MadTheme( override fun headersBuilder() = Headers.Builder().apply { add("Referer", "$baseUrl/") - add("User-Agent", "Tachiyomi " + System.getProperty("http.agent")) } private val json: Json by injectLazy() diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt index 8b65b6c01..af5fc8e65 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madtheme/MadThemeGenerator.kt @@ -9,7 +9,7 @@ class MadThemeGenerator : ThemeSourceGenerator { override val themeClass = "MadTheme" - override val baseVersionCode: Int = 1 + override val baseVersionCode: Int = 2 override val sources = listOf( SingleLang("BeeHentai", "https://beehentai.com", "en", isNsfw = true),