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 fb04618
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ data class PlaylistInfo(
@Serializable
data class Playlist(
val info: PlaylistInfo,
val pluginInfo: JsonObject,
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 fb04618

Please sign in to comment.