mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-19 01:22:11 +00:00
fix: use addon-provided subtitle label instead of URL
This commit is contained in:
parent
70ea2a5772
commit
3c2e144f1d
1 changed files with 2 additions and 2 deletions
|
|
@ -369,7 +369,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
subtitles: Array.isArray(player.selected.stream.subtitles) ?
|
||||
player.selected.stream.subtitles.map((subtitles) => ({
|
||||
...subtitles,
|
||||
label: subtitles.url
|
||||
label: subtitles.label || subtitles.url
|
||||
}))
|
||||
:
|
||||
[]
|
||||
|
|
@ -406,7 +406,7 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
if (video.state.stream !== null) {
|
||||
const tracks = player.subtitles.map((subtitles) => ({
|
||||
...subtitles,
|
||||
label: subtitles.url
|
||||
label: subtitles.label || subtitles.url
|
||||
}));
|
||||
video.addExtraSubtitlesTracks(tracks);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue