From 32c4a69174df089cee15b51b241144fa5cd7f88b Mon Sep 17 00:00:00 2001 From: beerpsi <92439990+beerpiss@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:38:33 +0700 Subject: [PATCH] TM: Fix requests (#765) --- src/pt/tsukimangas/build.gradle | 2 +- .../tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pt/tsukimangas/build.gradle b/src/pt/tsukimangas/build.gradle index 69096e999..73475367c 100644 --- a/src/pt/tsukimangas/build.gradle +++ b/src/pt/tsukimangas/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Tsuki Mangás' extClass = '.TsukiMangas' - extVersionCode = 2 + extVersionCode = 3 isNsfw = true } diff --git a/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt b/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt index 7cb767162..fb945b710 100644 --- a/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt +++ b/src/pt/tsukimangas/src/eu/kanade/tachiyomi/extension/pt/tsukimangas/TsukiMangas.kt @@ -46,7 +46,9 @@ class TsukiMangas : HttpSource() { .build() } - override fun headersBuilder() = super.headersBuilder().add("Referer", "$baseUrl/") + override fun headersBuilder() = super.headersBuilder() + .add("Referer", "$baseUrl/") + .add("X-Requested", "HttpsRequest") private val json: Json by injectLazy() @@ -268,6 +270,6 @@ class TsukiMangas : HttpSource() { private const val MAIN_CDN = "https://cdn.tsuki-mangas.com/tsuki" private const val SECONDARY_CDN = "https://cdn2.tsuki-mangas.com" - private const val API_PATH = "/api/d1" + private const val API_PATH = "/api/v3" } }