From c4b8345e659e38992456e31a4c21bbf0a7d38545 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Tue, 20 Dec 2022 23:37:52 -0500 Subject: Added mediainfo as potential embedded subtitles parser. #2007 --- frontend/src/pages/Settings/Subtitles/index.tsx | 9 +++++++++ frontend/src/pages/Settings/Subtitles/options.ts | 12 ++++++++++++ 2 files changed, 21 insertions(+) (limited to 'frontend') diff --git a/frontend/src/pages/Settings/Subtitles/index.tsx b/frontend/src/pages/Settings/Subtitles/index.tsx index 2c71b3cdc..a1927682f 100644 --- a/frontend/src/pages/Settings/Subtitles/index.tsx +++ b/frontend/src/pages/Settings/Subtitles/index.tsx @@ -20,6 +20,7 @@ import { adaptiveSearchingDeltaOption, antiCaptchaOption, colorOptions, + embeddedSubtitlesParserOption, folderOptions, hiExtensionOptions, } from "./options"; @@ -278,6 +279,14 @@ const SettingsSubtitlesView: FunctionComponent = () => { Hide embedded subtitles for languages that are not currently desired. + (v === undefined ? "ffprobe" : v), + }} + options={embeddedSubtitlesParserOption} + > + Embedded subtitles video parser
diff --git a/frontend/src/pages/Settings/Subtitles/options.ts b/frontend/src/pages/Settings/Subtitles/options.ts index 5549a4128..62c4f60b2 100644 --- a/frontend/src/pages/Settings/Subtitles/options.ts +++ b/frontend/src/pages/Settings/Subtitles/options.ts @@ -41,6 +41,18 @@ export const antiCaptchaOption: SelectorOption[] = [ }, ]; +export const embeddedSubtitlesParserOption: SelectorOption[] = [ + { + label: "ffprobe (faster)", + value: "ffprobe", + }, + { + label: + "mediainfo (slower but may give better results. Must be already installed)", + value: "mediainfo", + }, +]; + export const adaptiveSearchingDelayOption: SelectorOption[] = [ { label: "1 week", -- cgit v1.2.3