[RU]Remanga cloudflareClient & fix tags (#12821)

* [RU]Remanga cloudflareClient

* empty tags fix
This commit is contained in:
Ejan 2022-07-31 18:08:22 +05:00 committed by GitHub
parent d620ed8e3a
commit 7339632fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -108,7 +108,7 @@ class Remanga : ConfigurableSource, HttpSource() {
response
}
override val client: OkHttpClient =
network.client.newBuilder()
network.cloudflareClient.newBuilder()
.addInterceptor { imageContentTypeIntercept(it) }
.addInterceptor { authIntercept(it) }
.build()
@ -289,7 +289,7 @@ class Remanga : ConfigurableSource, HttpSource() {
}
val mediaNameLanguage = if (isEng.equals("rus")) en_name else rus_name
this.description = mediaNameLanguage + "\n" + ratingStar + " " + ratingValue + " (голосов: " + count_rating + ")\n" + altName + Jsoup.parse(o.description).text()
genre = parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }
genre = (parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }).split(", ").filter { it.isNotEmpty() }.joinToString { it.trim() }
status = parseStatus(o.status.id)
}
}