[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' 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"

View File

@ -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)

View File

@ -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