bazarr/bazarr/api
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
..
badges Added Announcements section in System to be able to inform users of Bazarr's news. 2023-02-20 16:04:09 -05:00
episodes Refactored subtitles upgrade 2023-02-23 11:18:57 -05:00
files Added Swagger documentation for Bazarr API 2022-09-21 23:51:34 -04:00
history Added PostgreSQL as optional database engine 2023-01-29 16:44:56 -05:00
movies Refactored subtitles upgrade 2023-02-23 11:18:57 -05:00
providers Refactored subtitles upgrade 2023-02-23 11:18:57 -05:00
series Added PostgreSQL as optional database engine 2023-01-29 16:44:56 -05:00
subtitles Fixed subtitles file naming when using hearing-impaired removal mods. 2023-03-01 16:04:27 -05:00
system Added feature to treat couples of languages as equal when searching for subtitles 2023-05-27 09:38:55 -04:00
webhooks Fixed Plex webhook trying to search for subtitles for pre-roll video. #2013 2022-12-14 12:56:33 -05:00
__init__.py Added Swagger documentation for Bazarr API 2022-09-21 23:51:34 -04:00
swaggerui.py Added Swagger documentation for Bazarr API 2022-09-21 23:51:34 -04:00
utils.py Fix for get movies/series response serializer 2023-01-31 21:33:55 +01:00