diff options
author | morpheus65535 <[email protected]> | 2021-12-11 07:44:53 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-12-11 07:44:53 -0500 |
commit | 63b326aa2f12df482f9537a0fec2f7755a152bfc (patch) | |
tree | c2fe4e6b7131fcbd307417743b5a2e8e21f3fcb9 /frontend/src/Settings/Languages/modal.tsx | |
parent | a87a1fad8f56e50b1bacb2b8c174ed3e6a831a0e (diff) | |
download | bazarr-63b326aa2f12df482f9537a0fec2f7755a152bfc.tar.gz bazarr-63b326aa2f12df482f9537a0fec2f7755a152bfc.zip |
Implemented words/regex ban list for subtitles
Diffstat (limited to 'frontend/src/Settings/Languages/modal.tsx')
-rw-r--r-- | frontend/src/Settings/Languages/modal.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/frontend/src/Settings/Languages/modal.tsx b/frontend/src/Settings/Languages/modal.tsx index 20d1943a9..7371267dc 100644 --- a/frontend/src/Settings/Languages/modal.tsx +++ b/frontend/src/Settings/Languages/modal.tsx @@ -13,6 +13,7 @@ import { ActionButton, BaseModal, BaseModalProps, + Chips, LanguageSelector, Selector, SimpleTable, @@ -31,6 +32,8 @@ function createDefaultProfile(): Language.Profile { name: "", items: [], cutoff: null, + mustContain: [], + mustNotContain: [], }; } @@ -260,6 +263,28 @@ const LanguagesProfileModal: FunctionComponent<Props & BaseModalProps> = ( ></Selector> <Message>Ignore others if existing</Message> </Input> + <Input name="Release info must contain"> + <Chips + value={current.mustContain} + onChange={(mc) => updateProfile("mustContain", mc)} + ></Chips> + <Message> + Subtitles release info must include one of those words or they will be + excluded from search results (regex supported). + </Message> + </Input> + <Input name="Release info must not contain"> + <Chips + value={current.mustNotContain} + onChange={(mnc: string[]) => { + updateProfile("mustNotContain", mnc); + }} + ></Chips> + <Message> + Subtitles release info including one of those words (case insensitive) + will be excluded from search results (regex supported). + </Message> + </Input> </BaseModal> ); }; |