Use series details page

This commit is contained in:
Damontecres 2025-10-04 22:42:43 -04:00
parent 887dd7001c
commit 833e1d2ea1
No known key found for this signature in database
11 changed files with 283 additions and 29 deletions

View file

@ -25,14 +25,14 @@ data class BaseItem(
@Transient
val indexNumber = data.indexNumber
fun destination(): Destination.MediaItem {
fun destination(): Destination {
val result =
// Redirect episodes & seasons to their series if possible
when (type) {
BaseItemKind.EPISODE -> {
data.indexNumber?.let { episode ->
data.parentIndexNumber?.let { season ->
Destination.MediaItem(
Destination.SeriesOverview(
data.seriesId!!,
BaseItemKind.SERIES,
this,
@ -43,8 +43,8 @@ data class BaseItem(
}
BaseItemKind.SEASON ->
data.parentIndexNumber?.let { season ->
Destination.MediaItem(
data.indexNumber?.let { season ->
Destination.SeriesOverview(
data.seriesId!!,
BaseItemKind.SERIES,
this,