[RU]Remanga cloudflareClient & fix tags (#12821)
* [RU]Remanga cloudflareClient * empty tags fix
This commit is contained in:
parent
d620ed8e3a
commit
7339632fc4
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Remanga'
|
||||
pkgNameSuffix = 'ru.remanga'
|
||||
extClass = '.Remanga'
|
||||
extVersionCode = 51
|
||||
extVersionCode = 52
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue