[RU]Remanga fix null error (#17833)
* [RU]Remanga fix null error * clean reviewed
This commit is contained in:
parent
3a409ba93a
commit
87ca0f75be
@ -6,7 +6,7 @@ ext {
|
||||
extName = 'Remanga'
|
||||
pkgNameSuffix = 'ru.remanga'
|
||||
extClass = '.Remanga'
|
||||
extVersionCode = 77
|
||||
extVersionCode = 78
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -390,7 +390,11 @@ class Remanga : ConfigurableSource, HttpSource() {
|
||||
altName = "Альтернативные названия:\n" + another_name + "\n\n"
|
||||
}
|
||||
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.replace("<p>", "").replace("</p>", "REPLACbR")).text().replace("REPLACbR", "\n")
|
||||
this.description = "$mediaNameLanguage\n$ratingStar $ratingValue (голосов: $count_rating)\n$altName" +
|
||||
o.description?.let { Jsoup.parseBodyFragment(it) }
|
||||
?.select("p")
|
||||
?.joinToString("\n") { it.text() }
|
||||
.orEmpty()
|
||||
genre = (parseType(type) + ", " + parseAge(age_limit) + ", " + (genres + categories).joinToString { it.name }).split(", ").filter { it.isNotEmpty() }.joinToString { it.trim() }
|
||||
status = parseStatus(o.status.id)
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ data class MangaDetDto(
|
||||
val rus_name: String,
|
||||
val another_name: String,
|
||||
val dir: String,
|
||||
val description: String,
|
||||
val description: String?,
|
||||
val issue_year: Int?,
|
||||
val img: ImgDto,
|
||||
val type: TagsDto,
|
||||
|
Loading…
x
Reference in New Issue
Block a user