mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Fix live tv being unplayable (#346)
Fixes issue with playing live TV Fixes #344
This commit is contained in:
parent
f4c602ef3f
commit
8a2481362d
2 changed files with 4 additions and 4 deletions
|
|
@ -42,15 +42,15 @@ val BaseItemKind.playable: Boolean
|
||||||
BaseItemKind.MUSIC_VIDEO,
|
BaseItemKind.MUSIC_VIDEO,
|
||||||
BaseItemKind.TRAILER,
|
BaseItemKind.TRAILER,
|
||||||
BaseItemKind.VIDEO,
|
BaseItemKind.VIDEO,
|
||||||
-> true
|
|
||||||
|
|
||||||
// TODO add support for these eventually
|
|
||||||
BaseItemKind.LIVE_TV_CHANNEL,
|
BaseItemKind.LIVE_TV_CHANNEL,
|
||||||
BaseItemKind.LIVE_TV_PROGRAM,
|
BaseItemKind.LIVE_TV_PROGRAM,
|
||||||
BaseItemKind.PROGRAM,
|
BaseItemKind.PROGRAM,
|
||||||
BaseItemKind.RECORDING,
|
BaseItemKind.RECORDING,
|
||||||
BaseItemKind.TV_CHANNEL,
|
BaseItemKind.TV_CHANNEL,
|
||||||
BaseItemKind.TV_PROGRAM,
|
BaseItemKind.TV_PROGRAM,
|
||||||
|
-> true
|
||||||
|
|
||||||
|
// TODO add support for these eventually
|
||||||
BaseItemKind.AUDIO_BOOK,
|
BaseItemKind.AUDIO_BOOK,
|
||||||
BaseItemKind.AUDIO,
|
BaseItemKind.AUDIO,
|
||||||
BaseItemKind.CHANNEL,
|
BaseItemKind.CHANNEL,
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ class PlaybackViewModel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
val item = BaseItem.from(base, api)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue