fix a crash when url or vcodes are missing for a stream
always initialize them, also initialize hardsub_locale since it might be optional too
This commit is contained in:
parent
4c55bb771f
commit
97966f5ad3
|
@ -380,9 +380,9 @@ data class Streams(
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class Stream(
|
data class Stream(
|
||||||
@SerialName("hardsub_locale") val hardsubLocale: String,
|
@SerialName("hardsub_locale") val hardsubLocale: String = "", // default/nullable value since might be optional
|
||||||
@SerialName("url") val url: String,
|
@SerialName("url") val url: String = "", // default/nullable value since optional
|
||||||
@SerialName("vcodec") val vcodec: String,
|
@SerialName("vcodec") val vcodec: String = "", // default/nullable value since optional
|
||||||
)
|
)
|
||||||
|
|
||||||
val NonePlayback = Playback(
|
val NonePlayback = Playback(
|
||||||
|
|
Loading…
Reference in New Issue