Fix ShelfRow.slug for browse-all navigation compile.

This commit is contained in:
Jos Vooges | STH 2026-08-31 02:09:06 +02:00
parent 1b0d5a9f8d
commit e22cef06dd

View file

@ -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(),
)
)