diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx index a406031e..a9ff591c 100644 --- a/src/components/player/atoms/settings/CaptionsView.tsx +++ b/src/components/player/atoms/settings/CaptionsView.tsx @@ -227,7 +227,7 @@ export function CustomCaptionOption() { ); } -export function PasteCaptionOption() { +export function PasteCaptionOption(props: { selected?: boolean }) { const { t } = useTranslation(); const setCaption = usePlayerStore((s) => s.setCaption); const setCustomSubs = useSubtitleStore((s) => s.setCustomSubs); @@ -267,7 +267,7 @@ export function PasteCaptionOption() { setCaption({ language: parsedData.language, srtData: converted, - id: parsedData.id, + id: "pasted-caption", }); setCustomSubs(); @@ -286,7 +286,12 @@ export function PasteCaptionOption() { }; return ( - + {t("player.menus.subtitles.pasteChoice")} ); @@ -532,7 +537,9 @@ export function CaptionsView({ {/* Paste subtitle option */} - +