mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42: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',
|
type: 'command',
|
||||||
commandName: 'load',
|
commandName: 'load',
|
||||||
commandArgs: {
|
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,
|
autoplay: true,
|
||||||
time: player.libraryItem !== null && player.selected.streamRequest !== null && player.libraryItem.state.video_id === player.selected.streamRequest.id ?
|
time: player.libraryItem !== null && player.selected.streamRequest !== null && player.libraryItem.state.video_id === player.selected.streamRequest.id ?
|
||||||
player.libraryItem.state.timeOffset
|
player.libraryItem.state.timeOffset
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue