fix: erroring out when thumbnails are null which causes sync to reset

This commit is contained in:
zvonimir 2025-07-31 18:34:24 +02:00
commit 4c0c1abb4b

View file

@ -16,7 +16,7 @@ open class SerializedPlatformVideo(
override val contentType: ContentType = ContentType.MEDIA, override val contentType: ContentType = ContentType.MEDIA,
override val id: PlatformID, override val id: PlatformID,
override val name: String, override val name: String,
override val thumbnails: Thumbnails, override val thumbnails: Thumbnails = Thumbnails(),
override val author: PlatformAuthorLink, override val author: PlatformAuthorLink,
@kotlinx.serialization.Serializable(with = OffsetDateTimeNullableSerializer::class) @kotlinx.serialization.Serializable(with = OffsetDateTimeNullableSerializer::class)
@JsonNames("datetime", "dateTime") @JsonNames("datetime", "dateTime")