diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index ccbb6e2d9..75e7ca77a 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'MangaDex' pkgNameSuffix = 'all.mangadex' extClass = '.MangaDexFactory' - extVersionCode = 177 + extVersionCode = 178 isNsfw = true } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDexHelper.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDexHelper.kt index 2109aecbc..29f289a6a 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDexHelper.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/MangaDexHelper.kt @@ -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) { diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/dto/EntityDto.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/dto/EntityDto.kt index b2dc618ed..f802d95cf 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/dto/EntityDto.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/dto/EntityDto.kt @@ -11,3 +11,6 @@ abstract class EntityDto { @Serializable abstract class AttributesDto + +@Serializable +data class UnknownEntity(override val attributes: AttributesDto? = null) : EntityDto()