Commit Graph

11 Commits

Author SHA1 Message Date
Vitiko 9cf21242ca Add more info to exceptions 2023-09-14 01:52:45 -04:00
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
Vitiko 585c70c39d Add support for custom languages in audio tracks 2023-05-19 02:03:17 -04:00
Vitiko c06dd620b7 Add mediainfo support for custom languages 2023-05-17 01:45:29 -04:00
Vitiko 708fbfcd8e Add support for configurable scores (movies and episodes)
Currently only configurable via manual `data/config/config.ini`
text edition.

New configurable values are `series_scores` and `movie_scores`.

For each config section, the sum of the config values (except hash)
must be equal to the hash value plus one (1), otherwise default
values will be used (notified via debug log).

Hash values are not meant to be modified; the value is shown in
`config.ini` for reference. Modifying hash values would imply
breaking Bazarr's score logic.
2022-11-05 01:07:06 -04:00
vitiko98 5624ae431e Embedded Subtitles provider: add support for unknown language tags 2022-07-20 02:51:30 -04:00
vitiko98 d2b40bd781 Add Karagarga.in provider 2022-06-29 00:07:18 -04:00
vitiko98 8086bce5c4 Embedded Subtitles Provider: major update
* fese library was updated
* mergerfs_mode support was dropped. Too much false positives
* extended codec support (two new codecs added: webvtt and mov_text)
* disable conversion to srt by default
2022-06-28 23:21:31 -04:00
vitiko98 bd8f4027dd no log: add get_providers tests 2022-06-21 16:27:52 -04:00
vitiko98 616994487c no log: add default env vars to bazarr config tests 2022-06-21 15:55:39 -04:00
morpheus65535 f3287561e5 no log: added test for all Bazarr imports (not libs) 2022-06-08 21:35:17 -04:00