mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-16 10:50:28 +01:00
Added tmp fix
This commit is contained in:
@@ -65,6 +65,7 @@ const DropdownView: React.FC<DropdownViewProps> = ({ showControls }) => {
|
|||||||
if (sub.IsTextSubtitleStream) {
|
if (sub.IsTextSubtitleStream) {
|
||||||
if (textSubtitles.length === 0) return disableSubtitle;
|
if (textSubtitles.length === 0) return disableSubtitle;
|
||||||
const textSubtitle = textSubtitles[textIndex];
|
const textSubtitle = textSubtitles[textIndex];
|
||||||
|
if (!textSubtitle) return disableSubtitle;
|
||||||
textIndex++;
|
textIndex++;
|
||||||
return textSubtitle;
|
return textSubtitle;
|
||||||
} else {
|
} else {
|
||||||
@@ -180,7 +181,7 @@ const DropdownView: React.FC<DropdownViewProps> = ({ showControls }) => {
|
|||||||
<DropdownMenu.CheckboxItem
|
<DropdownMenu.CheckboxItem
|
||||||
value={
|
value={
|
||||||
subtitleIndex ===
|
subtitleIndex ===
|
||||||
(sub.IsTextSubtitleStream && isOnTextSubtitle
|
(isOnTextSubtitle && sub.IsTextSubtitleStream
|
||||||
? getSourceSubtitleIndex(sub.index).toString()
|
? getSourceSubtitleIndex(sub.index).toString()
|
||||||
: sub?.index.toString())
|
: sub?.index.toString())
|
||||||
}
|
}
|
||||||
@@ -189,7 +190,7 @@ const DropdownView: React.FC<DropdownViewProps> = ({ showControls }) => {
|
|||||||
console.log("sub", sub);
|
console.log("sub", sub);
|
||||||
if (
|
if (
|
||||||
subtitleIndex ===
|
subtitleIndex ===
|
||||||
(sub.IsTextSubtitleStream && isOnTextSubtitle
|
(isOnTextSubtitle && sub.IsTextSubtitleStream
|
||||||
? getSourceSubtitleIndex(sub.index).toString()
|
? getSourceSubtitleIndex(sub.index).toString()
|
||||||
: sub?.index.toString())
|
: sub?.index.toString())
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user