[RU]NewManga fix error ImgDto (#13625)
* [RU]NewManga fix error ImgDto * readable dto
This commit is contained in:
parent
c72a027702
commit
8553e161bc
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'NewManga(Newbie)'
|
extName = 'NewManga(Newbie)'
|
||||||
pkgNameSuffix = 'ru.newbie'
|
pkgNameSuffix = 'ru.newbie'
|
||||||
extClass = '.Newbie'
|
extClass = '.Newbie'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -103,9 +103,7 @@ class Newbie : ConfigurableSource, HttpSource() {
|
||||||
// Do not change the title name to ensure work with a multilingual catalog!
|
// Do not change the title name to ensure work with a multilingual catalog!
|
||||||
title = if (isEng.equals("rus")) o.title.ru else o.title.en
|
title = if (isEng.equals("rus")) o.title.ru else o.title.en
|
||||||
url = "$id"
|
url = "$id"
|
||||||
thumbnail_url = if (image.srcset.large.isNotEmpty()) {
|
thumbnail_url = "$IMAGE_URL/${image.name}"
|
||||||
"$IMAGE_URL/${image.srcset.large}"
|
|
||||||
} else "$IMAGE_URL/${image.srcset.small}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -254,7 +252,7 @@ class Newbie : ConfigurableSource, HttpSource() {
|
||||||
// Do not change the title name to ensure work with a multilingual catalog!
|
// Do not change the title name to ensure work with a multilingual catalog!
|
||||||
title = if (isEng.equals("rus")) o.title.ru else o.title.en
|
title = if (isEng.equals("rus")) o.title.ru else o.title.en
|
||||||
url = "$id"
|
url = "$id"
|
||||||
thumbnail_url = "$IMAGE_URL/${image.srcset.large}"
|
thumbnail_url = "$IMAGE_URL/${image.name}"
|
||||||
author = o.author?.name
|
author = o.author?.name
|
||||||
artist = o.artist?.name
|
artist = o.artist?.name
|
||||||
val mediaNameLanguage = if (isEng.equals("rus")) o.title.en else o.title.ru
|
val mediaNameLanguage = if (isEng.equals("rus")) o.title.en else o.title.ru
|
||||||
|
|
|
@ -44,13 +44,7 @@ data class AuthorDto(
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class ImgDto(
|
data class ImgDto(
|
||||||
val srcset: ImgsDto,
|
val name: String,
|
||||||
)
|
|
||||||
|
|
||||||
@Serializable
|
|
||||||
data class ImgsDto(
|
|
||||||
val large: String,
|
|
||||||
val small: String,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Reference in New Issue