import React, { FunctionComponent } from "react"; import { Check, CollapseBox, Group, Input, Message, Selector, SettingsProvider, Slider, Text, } from "../components"; import { adaptiveSearchingDelayOption, adaptiveSearchingDeltaOption, antiCaptchaOption, colorOptions, folderOptions, } from "./options"; const subzeroOverride = (key: string) => { return (settings: Settings) => { return settings.general.subzero_mods?.includes(key) ?? false; }; }; const subzeroColorOverride = (settings: Settings) => { return ( settings.general.subzero_mods?.find((v) => v.startsWith("color")) ?? null ); }; const SettingsSubtitlesView: FunctionComponent = () => { return ( Choose the folder you wish to store/read the subtitles k !== "" && k !== "current"}> Schedule a task to upgrade subtitles previously downloaded by Bazarr. Number of days to go back in history to upgrade subtitles Enable or disable upgrade of manually downloaded or translated subtitles. (v === undefined ? "None" : v)} options={antiCaptchaOption} > Choose the anti-captcha provider you want to use Anti-Captcha.com DeathByCaptcha.com When searching for subtitles, Bazarr will reduce search frequency to limit call to providers. (v === undefined ? "3w" : v)} options={adaptiveSearchingDelayOption} > How much weeks must Bazarr wait after initial search to reduce search frequency. (v === undefined ? "1w" : v)} options={adaptiveSearchingDeltaOption} > How often should Bazarr search for subtitles when in adaptive search mode. Search multiple providers at once (Don't choose this on low powered devices) Use embedded subtitles in media files when determining missing ones. Ignores PGS Subtitles in Embedded Subtitles detection. Ignores VobSub Subtitles in Embedded Subtitles detection. Ignores ASS Subtitles in Embedded Subtitles detection. Hide embedded subtitles for languages that are not currently desired. Re-encode downloaded Subtitles to UTF8. Should be left enabled in most case. Removes tags, text and characters from subtitles that are meant for hearing impaired people. Removes all possible style tags from the subtitle, such as font, bold, color etc. Fix issues that happen when a subtitle gets converted from bitmap to text through OCR. Fix common and whitespace/punctuation issues in subtitles. Tries to make subtitles that are completely uppercase readable. Adds color to your subtitles (for playback devices/software that don't ship their own color modes; only works for players that support color tags). Reverses the punctuation in right-to-left subtitles for problematic playback devices. Must be 4 digit octal Enable the automatic subtitles synchronization after downloading a subtitles. Do not actually sync the subtitles but generate a .tar.gz file to be able to open an issue for ffsubsync. This file will reside alongside the media file. Enable the post-processing execution after downloading a subtitles. Variables you can use in your command {"{{directory}}"} Full path of the episode file parent directory {"{{episode}}"} Full path of the episode file {"{{episode_name}}"} Filename of the episode without parent directory or extension {"{{subtitles}}"} Full path of the subtitles file {"{{subtitles_language}}"} Language of the subtitles file (may include HI or forced) {"{{subtitles_language_code2}}"} 2-letter ISO-639 language code of the subtitles language (may include :hi or :forced) {"{{subtitles_language_code2_dot}}"} 2-letter ISO-639 language code of the subtitles language (same as previous but with dot separator instead of colon) {"{{subtitles_language_code3}}"} 3-letter ISO-639 language code of the subtitles language (may include :hi or :forced) {"{{subtitles_language_code3_dot}}"} 3-letter ISO-639 language code of the subtitles language (same as previous but with dot separator instead of colon) {"{{episode_language}}"} Audio language of the episode file {"{{episode_language_code2}}"} 2-letter ISO-639 language code of the episode audio language {"{{episode_language_code3}}"} 3-letter ISO-639 language code of the episode audio language {"{{score}}"} Score of the subtitle file {"{{subtitle_id}}"} Provider ID of the subtitle file {"{{series_id}}"} Sonarr series ID (Empty if movie) {"{{episode_id}}"} Sonarr episode ID or Radarr movie ID ); }; export default SettingsSubtitlesView;