fix: default subtitle not being selected properly
This commit is contained in:
3 files changed
+8
-4
No files matched your search
@@ -197,7 +197,9 @@ const EpisodeTitlePage = () => {
|
||||
item.data.MediaSources[0].DefaultAudioStreamIndex ?? null,
|
||||
);
|
||||
setSelectedSubtitleTrack(
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex ?? "nosub",
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex === -1
|
||||
? "nosub"
|
||||
: item.data.MediaSources[0].DefaultSubtitleStreamIndex,
|
||||
);
|
||||
|
||||
setVideoTracks(videos);
|
||||
|
||||
Reference in new issue
Block a user