From 2daeb493a42947ca62ed97f493cfb73697de9df9 Mon Sep 17 00:00:00 2001 From: Paul Woitaschek Date: Sat, 16 Jul 2022 15:11:39 +0200 Subject: [PATCH] Allow missing parsed meta data. --- scanner/src/main/kotlin/voice/app/scanner/Metadata.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scanner/src/main/kotlin/voice/app/scanner/Metadata.kt b/scanner/src/main/kotlin/voice/app/scanner/Metadata.kt index 2ad756f085..55a56b30b8 100644 --- a/scanner/src/main/kotlin/voice/app/scanner/Metadata.kt +++ b/scanner/src/main/kotlin/voice/app/scanner/Metadata.kt @@ -7,9 +7,9 @@ import kotlin.time.Duration.Companion.seconds @Serializable data class MetaDataScanResult( - val streams: List, - val chapters: List, - val format: MetaDataFormat? + val streams: List = emptyList(), + val chapters: List = emptyList(), + val format: MetaDataFormat? = null, ) enum class TagType {