From bd43b9f98283438cd2a797f356c53fc4079077c0 Mon Sep 17 00:00:00 2001 From: e-shl <35057681+e-shl@users.noreply.github.com> Date: Thu, 9 Dec 2021 15:43:55 +0500 Subject: [PATCH] [RU]Remanga return main domain (#10036) --- src/ru/remanga/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ru/remanga/build.gradle b/src/ru/remanga/build.gradle index b55d63550..20c48c683 100644 --- a/src/ru/remanga/build.gradle +++ b/src/ru/remanga/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Remanga' pkgNameSuffix = 'ru.remanga' extClass = '.Remanga' - extVersionCode = 38 + extVersionCode = 39 } dependencies { diff --git a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt index 4ed6872fa..dc40efefb 100644 --- a/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt +++ b/src/ru/remanga/src/eu/kanade/tachiyomi/extension/ru/remanga/Remanga.kt @@ -58,7 +58,7 @@ import kotlin.random.Random class Remanga : ConfigurableSource, HttpSource() { override val name = "Remanga" - override val baseUrl = "https://api.xn--80aaig9ahr.xn--c1avg" + override val baseUrl = "https://api.remanga.org" override val lang = "ru" @@ -70,7 +70,8 @@ class Remanga : ConfigurableSource, HttpSource() { override fun headersBuilder(): Headers.Builder = Headers.Builder() .add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/78.0$userAgentRandomizer") - .add("Referer", baseUrl) + .add("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/jxl,image/webp,*/*;q=0.8") + .add("Referer", "https://remanga.org") private val preferences: SharedPreferences by lazy { Injekt.get().getSharedPreferences("source_$id", 0x0000)