mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-07-27 03:42:14 +00:00
Merge 0f9fddd569 into 2272aab854
This commit is contained in:
commit
4f0cce6e05
1 changed files with 3 additions and 2 deletions
|
|
@ -197,8 +197,9 @@ const useSubtitles = ({
|
|||
}
|
||||
|
||||
if (extraTrack?.id) {
|
||||
if (video.state.selectedExtraSubtitlesTrackId !== extraTrack.id ||
|
||||
video.state.selectedSubtitlesTrackId !== null) {
|
||||
// Keep the first external match while waiting for an embedded track.
|
||||
// Add-on subtitle results can arrive in stages and reorder `extraTrack`.
|
||||
if (video.state.selectedExtraSubtitlesTrackId === null) {
|
||||
video.setExtraSubtitlesTrack(extraTrack.id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue