[RU]Remanga fix lost id and page num (#410)
This commit is contained in:
parent
d51448d967
commit
a14c354a5b
|
@ -2,7 +2,7 @@ ext {
|
||||||
extName = 'Remanga'
|
extName = 'Remanga'
|
||||||
pkgNameSuffix = 'ru.remanga'
|
pkgNameSuffix = 'ru.remanga'
|
||||||
extClass = '.Remanga'
|
extClass = '.Remanga'
|
||||||
extVersionCode = 82
|
extVersionCode = 83
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -618,8 +618,8 @@ class Remanga : ConfigurableSource, HttpSource() {
|
||||||
}
|
}
|
||||||
return try {
|
return try {
|
||||||
val page = json.decodeFromString<SeriesWrapperDto<PageDto>>(body)
|
val page = json.decodeFromString<SeriesWrapperDto<PageDto>>(body)
|
||||||
page.content.pages.filter { it.height > heightEmptyChunks }.map {
|
page.content.pages.filter { it.height > heightEmptyChunks }.mapIndexed { index, it ->
|
||||||
Page(it.page, "", fixLink(it.link))
|
Page(index, "", fixLink(it.link))
|
||||||
}
|
}
|
||||||
} catch (e: SerializationException) {
|
} catch (e: SerializationException) {
|
||||||
val page = json.decodeFromString<SeriesWrapperDto<ChunksPageDto>>(body)
|
val page = json.decodeFromString<SeriesWrapperDto<ChunksPageDto>>(body)
|
||||||
|
|
|
@ -118,10 +118,8 @@ data class ExLibraryDto(
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class PagesDto(
|
data class PagesDto(
|
||||||
val id: Int,
|
|
||||||
val height: Int,
|
|
||||||
val link: String,
|
val link: String,
|
||||||
val page: Int,
|
val height: Int,
|
||||||
)
|
)
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
|
|
Loading…
Reference in New Issue