Fix live tv being unplayable (#346)

Fixes issue with playing live TV

Fixes #344
This commit is contained in:
damontecres 2025-11-28 23:58:05 -05:00 committed by GitHub
parent f4c602ef3f
commit 8a2481362d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -42,15 +42,15 @@ val BaseItemKind.playable: Boolean
BaseItemKind.MUSIC_VIDEO,
BaseItemKind.TRAILER,
BaseItemKind.VIDEO,
-> true
// TODO add support for these eventually
BaseItemKind.LIVE_TV_CHANNEL,
BaseItemKind.LIVE_TV_PROGRAM,
BaseItemKind.PROGRAM,
BaseItemKind.RECORDING,
BaseItemKind.TV_CHANNEL,
BaseItemKind.TV_PROGRAM,
-> true
// TODO add support for these eventually
BaseItemKind.AUDIO_BOOK,
BaseItemKind.AUDIO,
BaseItemKind.CHANNEL,

View file

@ -258,7 +258,7 @@ class PlaybackViewModel
}
}
} else {
throw IllegalArgumentException("Item is not playable and not PlaybackList")
throw IllegalArgumentException("Item is not playable and not PlaybackList: ${queriedItem.type}")
}
val item = BaseItem.from(base, api)