fix: no subtitle option not selecting
This commit is contained in:
2 files changed
+4
-2
No files matched your search
@@ -197,7 +197,8 @@ const EpisodeTitlePage = () => {
|
||||
item.data.MediaSources[0].DefaultAudioStreamIndex ?? null,
|
||||
);
|
||||
setSelectedSubtitleTrack(
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex === -1
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex === -1 ||
|
||||
!item.data.MediaSources[0].DefaultSubtitleStreamIndex
|
||||
? "nosub"
|
||||
: item.data.MediaSources[0].DefaultSubtitleStreamIndex,
|
||||
);
|
||||
|
||||
@@ -230,7 +230,8 @@ const ItemDetail = () => {
|
||||
item.data.MediaSources[0].DefaultAudioStreamIndex ?? null,
|
||||
);
|
||||
setSelectedSubtitleTrack(
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex === -1
|
||||
item.data.MediaSources[0].DefaultSubtitleStreamIndex === -1 ||
|
||||
!item.data.MediaSources[0].DefaultSubtitleStreamIndex
|
||||
? "nosub"
|
||||
: item.data.MediaSources[0].DefaultSubtitleStreamIndex,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user