mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-10 19:40:41 +00:00
Merge pull request #1243 from Stremio/fix/subtitles-selection-improvements
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
Player: improve auto selection of subs
This commit is contained in:
commit
856f612f23
1 changed files with 4 additions and 2 deletions
|
|
@ -571,12 +571,14 @@ const Player = ({ urlParams, queryParams }) => {
|
|||
findTrackByLang(video.state.extraSubtitlesTracks, settings.subtitlesLanguage);
|
||||
|
||||
if (subtitlesTrack && subtitlesTrack.id) {
|
||||
if (video.state.selectedSubtitlesTrackId !== subtitlesTrack.id) {
|
||||
if (video.state.selectedSubtitlesTrackId !== subtitlesTrack.id ||
|
||||
video.state.selectedExtraSubtitlesTrackId !== null) {
|
||||
video.setSubtitlesTrack(subtitlesTrack.id);
|
||||
}
|
||||
defaultSubtitlesSelected.current = true;
|
||||
} else if (extraSubtitlesTrack && extraSubtitlesTrack.id) {
|
||||
if (video.state.selectedExtraSubtitlesTrackId !== extraSubtitlesTrack.id) {
|
||||
if (video.state.selectedExtraSubtitlesTrackId !== extraSubtitlesTrack.id ||
|
||||
video.state.selectedSubtitlesTrackId !== null) {
|
||||
video.setExtraSubtitlesTrack(extraSubtitlesTrack.id);
|
||||
}
|
||||
if (savedIsExternal) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue