Fix ShelfRow.slug for browse-all navigation compile.
This commit is contained in:
parent
1b0d5a9f8d
commit
e22cef06dd
1 changed files with 2 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ data class ShelfRow(
|
|||
val id: String,
|
||||
val title: String,
|
||||
val kind: String,
|
||||
val slug: String = "",
|
||||
val items: List<MediaItem>,
|
||||
)
|
||||
|
||||
|
|
@ -319,6 +320,7 @@ private fun JSONArray?.toShelves(): List<ShelfRow> {
|
|||
id = o.optString("id"),
|
||||
title = o.optString("title"),
|
||||
kind = o.optString("kind"),
|
||||
slug = o.optString("slug").ifBlank { o.optString("id") },
|
||||
items = o.optJSONArray("items").toItems(),
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue