1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 00:33:27 +00:00
bazarr/tests/subliminal_patch
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
..
cassettes Improved napiprojekt to search for subtitles using video metadata. 2022-10-26 20:43:07 -04:00
data no log: add tests data 2022-11-25 23:37:10 -04:00
conftest.py Improved Gestdown provider to get better matches using tvdb id 2023-03-01 22:11:50 -05:00
test_addic7ed.py Fix Addic7ed provider TypeError 2021-12-23 21:10:35 -04:00
test_argenteam.py Refactor Argenteam Provider 2022-11-13 19:41:42 -04:00
test_core.py Added feature to treat couples of languages as equal when searching for subtitles 2023-05-27 09:38:55 -04:00
test_embeddedsubtitles.py Embedded Subtitles provider: update filters 2023-01-19 00:21:21 -04:00
test_gestdown.py Improved Gestdown provider to get better matches using tvdb id 2023-03-01 22:11:50 -05:00
test_hosszupuska.py Fix Hosszupuska provider not returning results 2021-11-30 19:28:25 -04:00
test_karagarga.py Add Karagarga.in provider 2022-06-29 00:07:18 -04:00
test_mods.py Update subzero mods 2022-10-12 19:04:42 -04:00
test_napiprojekt.py Improved napiprojekt to search for subtitles using video metadata. 2022-10-26 20:43:07 -04:00
test_score.py Add support for configurable scores (movies and episodes) 2022-11-05 01:07:06 -04:00
test_subdivx.py Subdivx Provider: improve series matching 2023-05-09 17:08:22 -04:00
test_subf2m.py Subf2m Provider: improve episode matching (#2081) 2023-03-03 15:51:38 -04:00
test_subscene.py Add Subscene Cloudscraper Provider [Experimental] 2023-02-02 16:24:11 -04:00
test_subtitle.py Add support for configurable scores (movies and episodes) 2022-11-05 01:07:06 -04:00
test_subtitrarinoi.py Subtitrarinoi provider: add several improvements 2022-12-20 17:22:49 -04:00
test_supersubtitles.py SuperSubtitles provider: fix hungarian subtitles downloads 2023-05-04 19:15:35 -04:00
test_utils.py Improve providers utils 2023-02-15 20:49:56 -04:00
test_video.py Add 'other' attribute to Video class 2022-11-19 16:38:37 -04:00