[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'
 | 
			
		||||
    pkgNameSuffix = 'ru.remanga'
 | 
			
		||||
    extClass = '.Remanga'
 | 
			
		||||
    extVersionCode = 82
 | 
			
		||||
    extVersionCode = 83
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
apply from: "$rootDir/common.gradle"
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user