[RU]Remanga return main domain (#10036)

This commit is contained in:
e-shl 2021-12-09 15:43:55 +05:00 committed by GitHub
parent 6b5e24bc12
commit bd43b9f982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 38
extVersionCode = 39
}
dependencies {

View File

@ -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<Application>().getSharedPreferences("source_$id", 0x0000)