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 | |
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')
-rw-r--r-- | frontend/src/pages/Series/index.tsx | 8 | ||||
-rw-r--r-- | frontend/src/pages/Settings/Languages/index.tsx | 35 |
2 files changed, 30 insertions, 13 deletions
diff --git a/frontend/src/pages/Series/index.tsx b/frontend/src/pages/Series/index.tsx index da20c4459..6dfe07230 100644 --- a/frontend/src/pages/Series/index.tsx +++ b/frontend/src/pages/Series/index.tsx @@ -1,5 +1,6 @@ import { useSeriesModification, useSeriesPagination } from "@/apis/hooks"; import { Action } from "@/components"; +import { AudioList } from "@/components/bazarr"; import LanguageProfileName from "@/components/bazarr/LanguageProfile"; import { ItemEditModal } from "@/components/forms/ItemEditForm"; import { useModals } from "@/modules/modals"; @@ -44,6 +45,13 @@ const SeriesView: FunctionComponent = () => { }, }, { + Header: "Audio", + accessor: "audio_language", + Cell: ({ value }) => { + return <AudioList audios={value}></AudioList>; + }, + }, + { Header: "Languages Profile", accessor: "profileId", Cell: ({ value }) => { 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 |