summaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/pages/Settings/Subtitles/index.tsx9
-rw-r--r--frontend/src/pages/Settings/Subtitles/options.ts12
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",