MangaDex: Fix popular-latest (#16435)

This commit is contained in:
Ivan Iskandar 2023-05-14 20:00:12 +07:00 committed by GitHub
parent a07303a9da
commit ceedb73104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'MangaDex'
pkgNameSuffix = 'all.mangadex'
extClass = '.MangaDexFactory'
extVersionCode = 177
extVersionCode = 178
isNsfw = true
}

View File

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

View File

@ -11,3 +11,6 @@ abstract class EntityDto {
@Serializable
abstract class AttributesDto
@Serializable
data class UnknownEntity(override val attributes: AttributesDto? = null) : EntityDto()