mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
map exclusive subtitles
This commit is contained in:
parent
8126662957
commit
b3d04ccd99
1 changed files with 11 additions and 1 deletions
|
|
@ -209,7 +209,17 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
type: 'command',
|
||||
commandName: 'load',
|
||||
commandArgs: {
|
||||
stream: player.selected.stream,
|
||||
stream: {
|
||||
...player.selected.stream,
|
||||
subtitles: Array.isArray(player.selected.stream.subtitles) ?
|
||||
player.selected.stream.subtitles.map((subtitles, index) => ({
|
||||
...subtitles,
|
||||
id: 'exclusive_' + index,
|
||||
label: subtitles.url
|
||||
}))
|
||||
:
|
||||
[]
|
||||
},
|
||||
autoplay: true,
|
||||
time: player.libraryItem !== null && player.selected.streamRequest !== null && player.libraryItem.state.video_id === player.selected.streamRequest.id ?
|
||||
player.libraryItem.state.timeOffset
|
||||
|
|
|
|||
Loading…
Reference in a new issue