MangaDex: Fix popular-latest (#16435)
This commit is contained in:
parent
a07303a9da
commit
ceedb73104
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangaDexFactory'
|
||||
extVersionCode = 177
|
||||
extVersionCode = 178
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ import eu.kanade.tachiyomi.extension.all.mangadex.dto.ScanlationGroupDto
|
|||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.StatusDto
|
||||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.TagAttributesDto
|
||||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.TagDto
|
||||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.UnknownEntity
|
||||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.UserAttributes
|
||||
import eu.kanade.tachiyomi.extension.all.mangadex.dto.UserDto
|
||||
import eu.kanade.tachiyomi.network.GET
|
||||
|
@ -68,6 +69,7 @@ class MangaDexHelper(lang: String) {
|
|||
subclass(ScanlationGroupDto::class)
|
||||
subclass(TagDto::class)
|
||||
subclass(UserDto::class)
|
||||
defaultDeserializer { UnknownEntity.serializer() }
|
||||
}
|
||||
|
||||
polymorphic(AttributesDto::class) {
|
||||
|
|
|
@ -11,3 +11,6 @@ abstract class EntityDto {
|
|||
|
||||
@Serializable
|
||||
abstract class AttributesDto
|
||||
|
||||
@Serializable
|
||||
data class UnknownEntity(override val attributes: AttributesDto? = null) : EntityDto()
|
||||
|
|
Loading…
Reference in New Issue