bazarr/frontend/src/pages/Settings
Vitiko 547f8c428d
Added feature to treat couples of languages as equal when searching for subtitles
* Add 'Language-equals' support

This feature will treat couples of languages as equal for list-subtitles
operations. It's optional; its methods won't do anything if an empy list
is set. See more info at docstrings from 'subliminal_patch.core'.

For example, let's say I only want to have "Spanish (es.srt)" subtitles
and I don't care about the differences between Spain and LATAM spanish.
This feature will allow me to always get European Spanish even from
LATAM Spanish providers like Argenteam and Subdivx.

Example for config.ini:

language_equals = ['spa-MX:spa']

(Which means all Latam Spanish subtitles from every provider will be
converted to European Spanish)

* Add PT and ZH language tests

* Add HI and Forced parsing for language pairs

Format example: ["en@HI:en", "es-MX@forced:es-MX"]

* Update languages.py

* Update API definition to reflect the previous change

* Add language equals table to the UI (test only)

* Add global language selector and get language from code3 utilities

* Add unit tests for language equal feature

* Add encode function to language equal feature

* Add CRUD methods to the language equals panel

* Add equals description

* Add parsing support for alpha3 custom languages

* no log: add more tests

* Add forced and hi support to the language equal target

---------

Co-authored-by: morpheus65535 <louis_vezina@hotmail.com>
Co-authored-by: LASER-Yi <liangyi0007@gmail.com>
2023-05-27 09:38:55 -04:00
..
General Added support for CORS headers 2022-08-22 15:35:35 -04:00
Languages Added feature to treat couples of languages as equal when searching for subtitles 2023-05-27 09:38:55 -04:00
Notifications Fix Notification settings not saving after removing Discord #2005 2022-12-13 02:12:26 +08:00
Providers Fixed zimuku that now require anti-captcha 2023-04-21 06:25:09 -04:00
Radarr Added configurable request timeout to Sonarr and Radarr 2023-01-25 15:26:22 -05:00
Scheduler Increased minimum subtitles search and upgrade frequencies to 6 hours instead of 3 to reduce the impact on providers' website. 2023-02-08 17:00:37 -05:00
Sonarr Added configurable request timeout to Sonarr and Radarr 2023-01-25 15:26:22 -05:00
Subtitles Added an option to prevent sleeping hard drives from being wake-up by video file hashing. 2023-03-20 23:13:25 -04:00
UI Move pageSize in UI settings to backend 2022-11-21 00:24:09 +08:00
components no log: Completely refactor testing interface 2023-02-10 23:39:06 +08:00
utilities Fix Notification settings not saving after removing Discord #2005 2022-12-13 02:12:26 +08:00
keys.ts Added feature to treat couples of languages as equal when searching for subtitles 2023-05-27 09:38:55 -04:00
options.ts Frontend improvement and cleanup (#1690) 2022-03-16 14:26:15 +08:00
settings.test.tsx no log: Add unit tests to all pages 2023-02-11 01:21:09 +08:00