Skip to content

Commit

Permalink
add default value for userData & pluginInfo fields
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 18, 2023
1 parent bcb5bea commit 9930779
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ data class PlaylistInfo(

@Serializable
data class Playlist(
val info: PlaylistInfo,
val pluginInfo: JsonObject,
val tracks: List<Track>
val info: PlaylistInfo,
val pluginInfo: JsonObject = JsonObject(emptyMap()),
val tracks: List<Track>
) : LoadResult.Data {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ data class Player(
data class Track(
val encoded: String,
val info: TrackInfo,
val pluginInfo: JsonObject,
val userData: JsonObject
val pluginInfo: JsonObject = JsonObject(emptyMap()),
val userData: JsonObject = JsonObject(emptyMap())
) : LoadResult.Data {

/**
Expand Down

0 comments on commit 9930779

Please sign in to comment.