|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
import { FunctionComponent } from "react";
|
|
|
|
|
import { Text as MantineText } from "@mantine/core";
|
|
|
|
|
import { useLanguageProfiles, useLanguages } from "@/apis/hooks";
|
|
|
|
|
import {
|
|
|
|
|
Check,
|
|
|
|
|
Chips,
|
|
|
|
|
CollapseBox,
|
|
|
|
|
Layout,
|
|
|
|
|
Message,
|
|
|
|
@ -121,12 +123,21 @@ const SettingsLanguagesView: FunctionComponent = () => {
|
|
|
|
|
Sonarr (or a Movie from Radarr) to find a matching Bazarr language
|
|
|
|
|
profile tag. It will use as the language profile the FIRST tag from
|
|
|
|
|
Sonarr/Radarr that matches the tag of a Bazarr language profile
|
|
|
|
|
EXACTLY. If mutiple tags match, there is no guarantee as to which one
|
|
|
|
|
EXACTLY. If multiple tags match, there is no guarantee as to which one
|
|
|
|
|
will be used, so choose your tag names carefully. Also, if you update
|
|
|
|
|
the tag names in Sonarr/Radarr, Bazarr will detect this and repeat the
|
|
|
|
|
matching process for the affected shows. However, if a show's only
|
|
|
|
|
matching tag is removed from Sonarr/Radarr, Bazarr will NOT remove the
|
|
|
|
|
show's existing language profile, but keep it, as is.
|
|
|
|
|
show's existing language profile for that reason. But if you wish to
|
|
|
|
|
have language profiles removed automatically by tag value, simply
|
|
|
|
|
enter a list of one or more tags in the{" "}
|
|
|
|
|
<MantineText fw={700} span>
|
|
|
|
|
Remove Profile Tags
|
|
|
|
|
</MantineText>{" "}
|
|
|
|
|
entry list below. If your video tag matches one of the tags in that
|
|
|
|
|
list, then Bazarr will remove the language profile for that video. If
|
|
|
|
|
there is a conflict between profile selection and profile removal,
|
|
|
|
|
then profile removal wins out and is performed.
|
|
|
|
|
</Message>
|
|
|
|
|
<Check
|
|
|
|
|
label="Series"
|
|
|
|
@ -136,6 +147,19 @@ const SettingsLanguagesView: FunctionComponent = () => {
|
|
|
|
|
label="Movies"
|
|
|
|
|
settingKey="settings-general-movie_tag_enabled"
|
|
|
|
|
></Check>
|
|
|
|
|
<Chips
|
|
|
|
|
label="Remove Profile Tags"
|
|
|
|
|
settingKey="settings-general-remove_profile_tags"
|
|
|
|
|
sanitizeFn={(values: string[] | null) =>
|
|
|
|
|
values?.map((item) =>
|
|
|
|
|
item.replace(/[^a-z0-9_-]/gi, "").toLowerCase(),
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
></Chips>
|
|
|
|
|
<Message>
|
|
|
|
|
Enter tag values that will trigger a language profile removal. Leave
|
|
|
|
|
empty if you don't want Bazarr to remove language profiles.
|
|
|
|
|
</Message>
|
|
|
|
|
</Section>
|
|
|
|
|
<Section header="Default Settings">
|
|
|
|
|
<Check
|
|
|
|
|