en_name return (#5556)
This commit is contained in:
parent
b77d42a941
commit
cfdecd2583
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Remanga'
|
extName = 'Remanga'
|
||||||
pkgNameSuffix = 'ru.remanga'
|
pkgNameSuffix = 'ru.remanga'
|
||||||
extClass = '.Remanga'
|
extClass = '.Remanga'
|
||||||
extVersionCode = 16
|
extVersionCode = 17
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,8 @@ class Remanga : ConfigurableSource, HttpSource() {
|
||||||
|
|
||||||
private fun LibraryDto.toSManga(): SManga =
|
private fun LibraryDto.toSManga(): SManga =
|
||||||
SManga.create().apply {
|
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/"
|
url = "/api/titles/$dir/"
|
||||||
thumbnail_url = "$baseUrl/${img.high}"
|
thumbnail_url = "$baseUrl/${img.high}"
|
||||||
}
|
}
|
||||||
|
@ -213,10 +214,11 @@ class Remanga : ConfigurableSource, HttpSource() {
|
||||||
private fun MangaDetDto.toSManga(): SManga {
|
private fun MangaDetDto.toSManga(): SManga {
|
||||||
val o = this
|
val o = this
|
||||||
return SManga.create().apply {
|
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/"
|
url = "/api/titles/$dir/"
|
||||||
thumbnail_url = "$baseUrl/${img.high}"
|
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 }
|
genre = (genres + parseType(type)).joinToString { it.name }
|
||||||
status = parseStatus(o.status.id)
|
status = parseStatus(o.status.id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue