en_name return (#5556)

This commit is contained in:
Eugene 2021-01-25 19:11:24 +05:00 committed by GitHub
parent b77d42a941
commit cfdecd2583
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 16
extVersionCode = 17
libVersion = '1.2'
}

View File

@ -137,7 +137,8 @@ class Remanga : ConfigurableSource, HttpSource() {
private fun LibraryDto.toSManga(): SManga =
SManga.create().apply {
title = en_name + "\n" + rus_name
// Do not change the title name to ensure work with a multilingual catalog!
title = en_name
url = "/api/titles/$dir/"
thumbnail_url = "$baseUrl/${img.high}"
}
@ -213,10 +214,11 @@ class Remanga : ConfigurableSource, HttpSource() {
private fun MangaDetDto.toSManga(): SManga {
val o = this
return SManga.create().apply {
title = en_name + "\n" + rus_name
// Do not change the title name to ensure work with a multilingual catalog!
title = en_name
url = "/api/titles/$dir/"
thumbnail_url = "$baseUrl/${img.high}"
this.description = Jsoup.parse(o.description).text()
this.description = "Русское название: " + rus_name + "\n" + Jsoup.parse(o.description).text()
genre = (genres + parseType(type)).joinToString { it.name }
status = parseStatus(o.status.id)
}