Skip to content

Commit

Permalink
Assume empty metadata when absent
Browse files Browse the repository at this point in the history
This occurs when a library has zero content.
  • Loading branch information
JakeWharton committed Mar 13, 2021
1 parent 697732b commit 199a30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/jakewharton/plex/plex.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private data class PlexSections(
@Serializable
private data class PlexMetadataList(
@SerialName("Metadata")
val metadata: List<PlexMetadata>,
val metadata: List<PlexMetadata> = emptyList(), // Will be absent from JSON if no content.
)

@Serializable
Expand Down

0 comments on commit 199a30f

Please sign in to comment.