1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-24 08:43:01 +00:00
Commit graph

73 commits

Author SHA1 Message Date
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
5f9418b1f3 Subdivx Provider: improve series matching 2023-05-09 17:08:22 -04:00
Vitiko
e83f37d42e SuperSubtitles provider: fix hungarian subtitles downloads 2023-05-04 19:15:35 -04:00
Vitiko
da542a311a Subdivx Provider: handle UnicodeEncodeError for some titles 2023-04-14 23:19:12 -04:00
Vitiko
1427a8ab73 SuperSubtitles provider: fix episode matching 2023-03-30 17:26:21 -04:00
Vitiko
587af7d138 Supersubtitles provider: fix #2092 2023-03-10 18:12:37 -04:00
Vitiko
ad13f79d19 Subf2m Provider: improve episode matching (#2081) 2023-03-03 15:51:38 -04:00
Antoine Aflalo
248e49de76
Improved Gestdown provider to get better matches using tvdb id 2023-03-01 22:11:50 -05:00
Vitiko
62b5bd84b9 Supersubtitles provider: update matcher and downloader 2023-02-15 20:51:55 -04:00
Vitiko
f6c0146402 Improve providers utils 2023-02-15 20:49:56 -04:00
Vitiko
3a0085a155 Add Subscene Cloudscraper Provider [Experimental]
An alternative module to the Subscene provider.

* Uses similar parsing mechanisms of the Subfm2 provider
* Uses cloudscraper for server calls
* No login required

Not yet implemented in Web UI.
2023-02-02 16:24:11 -04:00
Vitiko
be75d78b93 Embedded Subtitles provider: update filters
Avoid unknown language fallback is such language is already present
2023-01-19 00:21:21 -04:00
Vitiko
1233026adc Subtitrarinoi provider: add several improvements
* Fix episode matches (#2018)
* Use standard utils to download subtitles
* Use standard utils to guess matches (partially implemented)
2022-12-20 17:22:49 -04:00
Vitiko
d064ac77ec no log: add tests data 2022-11-25 23:37:10 -04:00
Vitiko
923bcb4382 Add 'other' attribute to Video class 2022-11-19 16:38:37 -04:00
Vitiko
52760d8bc7 Refactor Argenteam Provider
* Deprecate text search in favour of IMDB search
* Simplify code
2022-11-13 19:41:42 -04:00
Vitiko
69e4a9c526 Subdivx Provider: improve series matching 2022-11-09 03:38:50 -04:00
Vitiko
d6883c2c73 Subf2m Provider: improve series title matches 2022-11-08 23:12:50 -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
Antoine Aflalo
be34b8fddd
Gestdown Provider: Use ShowId to find subtitles. Fixes issue with Slash in show name. (#1979)
This way, if a show has a slash (/) inside its name, we can still find subtitles for it.
2022-10-29 18:13:56 -04:00
Vitiko
122398fdc8 Subf2m Provider: add support for complete series packs 2022-10-27 00:00:19 -04:00
Vitiko
876b42bb8f Improve file picker for season packs 2022-10-27 00:00:19 -04:00
Paweł Wegner
bf26dd231a
Improved napiprojekt to search for subtitles using video metadata.
Prior to this change bazarr could lookup napiprojekt subtitles only by hash of
the video file.
2022-10-26 20:43:07 -04:00
Vitiko
fe8101dcee Subf2m Provider: add more improvements
* Retry queries when subf2m server returns 503
* Add support for episode titles in season packs
* Add support for season packs with "Complete Series" titles
2022-10-26 20:27:49 -04:00
Vitiko
23d4e3e006 Update provider utils 2022-10-26 16:53:41 -04:00
silentcommitter
d4203ee7cb
Subf2m provider improvements (#1973)
* subf2m provider: add more languages

* subf2m provider: use urllib parse rather than string replacement

* subf2m provider: change movie title matching to match exact year and use similarity based title matching

* subf2m provider: change tvshow title matching to match exact season and use similarity based title matching

* no log: Subf2m Provider: add tests

* Subf2m Provider: add serbian support

Co-authored-by: Vitiko <averroista@protonmail.com>
2022-10-22 15:26:28 -04:00
Vitiko
21359b32b5 Subdivx Provider: add more search improvements 2022-10-20 19:42:25 -04:00
Vitiko
9c5a88f880 no log: update subdivx provider tests 2022-10-19 20:11:10 -04:00
Vitiko
2f8814dcf8 Subdivx Provider: improve series matches 2022-10-19 20:06:00 -04:00
Vitiko
71fe2b7a1d Subdivx Provider: improve episode queries 2022-10-19 01:17:54 -04:00
Vitiko
daeb28baef Update subzero mods 2022-10-12 19:04:42 -04:00
Vitiko
582c2d9b3c no log: update conftest.py 2022-10-06 16:40:54 -04:00
Vitiko
571ffbccf8 Fix provider pool updates 2022-10-03 20:44:31 -04:00
Vitiko
0cd89ea0f0 no log: update Gestdown tests 2022-10-02 13:23:40 -04:00
vitiko98
571f9a195c no log: fix gestdown provider logger 2022-09-26 18:21:24 -04:00
vitiko98
6e521143e1 Embedded Subtitles provider: improve ASS subtitles filtering 2022-09-02 23:37:17 -04:00
vitiko98
09d1eb78c9 Avoid error trying to scan some videos
This removes unused code from subliminal_patch's core. Thanks to
refining, we don't need extra magic to guess from filenames anymore.
2022-08-29 20:50:50 -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
14153d7688 Subdivx provider: avoid TypeError 2022-06-21 01:44:24 -04:00
vitiko98
5a13046d58 Gestdown provider: improve http error handling
423 code retries were blocking every language query for too much time.
The amount of retries was reduced from 5 to 3
2022-05-25 20:44:47 -04:00
vitiko98
0e98880494 Gestdown provider: implement retries on 423 status codes 2022-05-23 23:27:04 -04:00
vitiko98
848836c5bb Subf2m provider: add season pack support 2022-05-23 22:46:20 -04:00
vitiko98
d3e5dc34d7 no log: add providers utility 2022-05-23 22:46:20 -04:00
Vitiko
473041158c Subf2m provider: improve matches parsing 2022-05-21 01:50:14 -04:00
Vitiko
0e1120e037 Subdivx provider: improve movie searches 2022-05-20 15:03:03 -04:00
Vitiko
c9d63f717f Add Gestdown.info Provider 2022-05-19 21:58:51 -04:00
Vitiko
b96fd93269 Embedded Subtitles provider: improve HI fallback 2022-05-16 23:56:52 -04:00
Vitiko
134613711a Embedded Subtitles provider: improve detection of potentially incomplete subtitles 2022-05-05 00:04:37 -04:00