mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Fix several playback issues (#240)
Fixes issues introduced in #222: - Switching tracks - Downloading subtitles - Trickplay
This commit is contained in:
parent
037e846599
commit
90956bd0e2
1 changed files with 4 additions and 2 deletions
|
|
@ -244,8 +244,10 @@ class PlaybackViewModel
|
||||||
)
|
)
|
||||||
return@withContext false
|
return@withContext false
|
||||||
}
|
}
|
||||||
val isLiveTv = item.type == BaseItemKind.TV_CHANNEL
|
this@PlaybackViewModel.item = item
|
||||||
|
this@PlaybackViewModel.itemId = item.id
|
||||||
|
|
||||||
|
val isLiveTv = item.type == BaseItemKind.TV_CHANNEL
|
||||||
val base = item.data
|
val base = item.data
|
||||||
val title =
|
val title =
|
||||||
if (base.type == BaseItemKind.EPISODE) {
|
if (base.type == BaseItemKind.EPISODE) {
|
||||||
|
|
@ -980,7 +982,7 @@ class PlaybackViewModel
|
||||||
delay(1500)
|
delay(1500)
|
||||||
item =
|
item =
|
||||||
BaseItem.from(
|
BaseItem.from(
|
||||||
api.userLibraryApi.getItem(itemId = item.id).content,
|
api.userLibraryApi.getItem(itemId = it.itemId).content,
|
||||||
api,
|
api,
|
||||||
)
|
)
|
||||||
val mediaSource = chooseSource(item.data, it)
|
val mediaSource = chooseSource(item.data, it)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue