[RU]Remanga fix lost id and page num (#410)

This commit is contained in:
Eshlender 2024-01-20 11:49:03 +05:00 committed by Draff
parent d51448d967
commit a14c354a5b
3 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,7 @@ ext {
extName = 'Remanga'
pkgNameSuffix = 'ru.remanga'
extClass = '.Remanga'
extVersionCode = 82
extVersionCode = 83
}
apply from: "$rootDir/common.gradle"

View File

@ -618,8 +618,8 @@ class Remanga : ConfigurableSource, HttpSource() {
}
return try {
val page = json.decodeFromString<SeriesWrapperDto<PageDto>>(body)
page.content.pages.filter { it.height > heightEmptyChunks }.map {
Page(it.page, "", fixLink(it.link))
page.content.pages.filter { it.height > heightEmptyChunks }.mapIndexed { index, it ->
Page(index, "", fixLink(it.link))
}
} catch (e: SerializationException) {
val page = json.decodeFromString<SeriesWrapperDto<ChunksPageDto>>(body)

View File

@ -118,10 +118,8 @@ data class ExLibraryDto(
@Serializable
data class PagesDto(
val id: Int,
val height: Int,
val link: String,
val page: Int,
val height: Int,
)
@Serializable