fix: Add default index if season wihtout index received from server

This commit is contained in:
2026-02-18 12:08:15 +01:00
parent a4b28b1dc7
commit 88a8f6f90d

View File

@@ -339,7 +339,7 @@ class InMemoryMediaRepository @Inject constructor(
id = this.id, id = this.id,
seriesId = this.seriesId!!, seriesId = this.seriesId!!,
name = this.name ?: "Unknown", name = this.name ?: "Unknown",
index = this.indexNumber!!, index = this.indexNumber ?: 0,
unwatchedEpisodeCount = this.userData!!.unplayedItemCount!!, unwatchedEpisodeCount = this.userData!!.unplayedItemCount!!,
episodeCount = this.childCount!!, episodeCount = this.childCount!!,
episodes = emptyList() episodes = emptyList()