diff options
author | morpheus65535 <[email protected]> | 2022-12-20 23:37:52 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-12-20 23:37:52 -0500 |
commit | c4b8345e659e38992456e31a4c21bbf0a7d38545 (patch) | |
tree | d8b2ee5a9a94e1b8d504018db0c42ccbdb6bf20e /frontend | |
parent | 1233026adc896055d73576e23e826cb6b8e3c5b2 (diff) | |
download | bazarr-c4b8345e659e38992456e31a4c21bbf0a7d38545.tar.gz bazarr-c4b8345e659e38992456e31a4c21bbf0a7d38545.zip |
Added mediainfo as potential embedded subtitles parser. #2007v1.1.4-beta.7
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/pages/Settings/Subtitles/index.tsx | 9 | ||||
-rw-r--r-- | frontend/src/pages/Settings/Subtitles/options.ts | 12 |
2 files changed, 21 insertions, 0 deletions
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. </Message> + <Selector + settingKey="settings-general-embedded_subtitles_parser" + settingOptions={{ + onSaved: (v) => (v === undefined ? "ffprobe" : v), + }} + options={embeddedSubtitlesParserOption} + ></Selector> + <Message>Embedded subtitles video parser</Message> </CollapseBox> </Section> <Section header="Post-Processing"> 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<string>[] = [ }, ]; +export const embeddedSubtitlesParserOption: SelectorOption<string>[] = [ + { + label: "ffprobe (faster)", + value: "ffprobe", + }, + { + label: + "mediainfo (slower but may give better results. Must be already installed)", + value: "mediainfo", + }, +]; + export const adaptiveSearchingDelayOption: SelectorOption<string>[] = [ { label: "1 week", |