diff options
author | morpheus65535 <[email protected]> | 2023-02-23 18:31:29 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2023-02-23 18:32:54 -0500 |
commit | 5dc4e782ae31ed36aaf4d27d9a46af3e494c7491 (patch) | |
tree | 1f5364692b95f0e159a594552070fbe3eb1840dc /frontend/src/pages/Settings/Languages/index.tsx | |
parent | 5b283098f9ec0804706225cc0b1266515e034be7 (diff) | |
download | bazarr-5dc4e782ae31ed36aaf4d27d9a46af3e494c7491.tar.gz bazarr-5dc4e782ae31ed36aaf4d27d9a46af3e494c7491.zip |
Added option to deeply analyze audio tracks from media files or not to determine languages. Default is to use Sonarr/Radarr provided languages instead. Should prevent API limit ban for cloud user.v1.1.5-beta.23
Diffstat (limited to 'frontend/src/pages/Settings/Languages/index.tsx')
-rw-r--r-- | frontend/src/pages/Settings/Languages/index.tsx | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/frontend/src/pages/Settings/Languages/index.tsx b/frontend/src/pages/Settings/Languages/index.tsx index 4616ab1ab..64c3e58b2 100644 --- a/frontend/src/pages/Settings/Languages/index.tsx +++ b/frontend/src/pages/Settings/Languages/index.tsx @@ -69,19 +69,28 @@ const SettingsLanguagesView: FunctionComponent = () => { ></LanguageSelector> </Section> - <Section header="Default Unknown Track Language"> - <Selector - clearable - settingKey={defaultUndAudioLang} - label="Treat unknown language audio track as (changing this will trigger missing subtitles calculation)" - placeholder="Select languages" - options={und_audio_languages.map((v) => { - return { label: v.name, value: v.code2 }; - })} - settingOptions={{ - onSubmit: (v) => (v === null ? "" : v), - }} - ></Selector> + <Section header="Embedded Tracks Language"> + <Check + label="Deep analyze media file to get audio tracks language." + settingKey="settings-general-parse_embedded_audio_track" + ></Check> + <CollapseBox + indent + settingKey="settings-general-parse_embedded_audio_track" + > + <Selector + clearable + settingKey={defaultUndAudioLang} + label="Treat unknown language audio track as (changing this will trigger missing subtitles calculation)" + placeholder="Select languages" + options={und_audio_languages.map((v) => { + return { label: v.name, value: v.code2 }; + })} + settingOptions={{ + onSubmit: (v) => (v === null ? "" : v), + }} + ></Selector> + </CollapseBox> <Selector clearable |