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