Commit Graph

664 Commits

Author SHA1 Message Date
Vitiko a82f52f84b no log: Subf2m provider: avoid iterating over unsupported languages 2023-06-13 02:51:36 -04:00
Vitiko ee1506ed54 Subf2m provider: add support for IMDB IDs 2023-06-13 02:13:42 -04:00
Vitiko e3c4def89a Subf2m Provider: add user-agent header configuration
This change fixes empty queries.
2023-06-12 19:36:11 -04:00
Vitiko 1c1caeb78b Embedded Subtitles provider: handle ASS errors
Fix #2168
2023-06-12 18:48:46 -04:00
morpheus65535 a13d69ddb2 Fixed yavka.net provider. #2169 2023-06-12 15:24:40 -04:00
morpheus65535 3c57381bb4 Fixed server side exception throttling opensubtitles.com when it shouldn't. #2153 2023-06-07 21:21:02 -04:00
morpheus65535 0956d401bc Added debug logging for request/response to opensubtitles.com provider. #2153 2023-06-07 08:07:47 -04:00
morpheus65535 b02c1a7e28 Merge remote-tracking branch 'origin/development' into development 2023-06-02 20:48:24 -04:00
morpheus65535 ead8a38927 Added support for Portuguese and Simplified Chinese to opensubtitles.com. #2159 2023-06-02 20:47:55 -04:00
Vitiko f1cbfd4be5 no log: add debug call to lang-equals 2023-05-30 19:25:37 -04:00
morpheus65535 bbdb61a514 Merge remote-tracking branch 'origin/development' into development 2023-05-29 06:39:15 -04:00
morpheus65535 2346f3ed58 Added some exceptions that shouldn't be retried to retry function. #2153 2023-05-29 06:38:35 -04:00
Vitiko 4725496313 Language-equals: add compatibility for more providers
Some providers directly uses language codes within their query
implementations. This 'translator' method will take care of that.
2023-05-28 22:06:43 -04:00
Vitiko 77531090b2 no log: reduce debug call verbosity 2023-05-28 21:05:21 -04:00
morpheus65535 43a6630527 Merge remote-tracking branch 'origin/development' into development 2023-05-28 09:16:37 -04:00
morpheus65535 d90d1cbfcc Fixed external subtitles indexation with accented characters that resulted in download in loop. #1961 2023-05-28 09:16:29 -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
morpheus65535 baf7a7300d Fixed type in opensubtitles.com provider that could cause AuthenticationError for new users. #2152 2023-05-24 19:14:23 -04:00
Alex Yancey 9c92dd493b
Specify ffmpeg path in case it's not in PATH envvar (#2147) 2023-05-20 21:02:48 -04:00
morpheus65535 bdf4ee85af Fixed AI and machine translated subtitles being incorrectly returned by Opensubtitles.com 2023-05-17 06:42:27 -04:00
Vitiko 5f9418b1f3 Subdivx Provider: improve series matching 2023-05-09 17:08:22 -04:00
morpheus65535 98c7364ce0 Merge remote-tracking branch 'origin/development' into development 2023-05-09 13:00:12 -04:00
morpheus65535 a6ecbb4315 Fixed yify provider MissingSchema exception on download. #2139 2023-05-09 12:59:48 -04:00
Kai Yang 0907269377
Fixed zimuku.org parsing error 2023-05-07 08:16:20 -04:00
Vitiko e83f37d42e SuperSubtitles provider: fix hungarian subtitles downloads 2023-05-04 19:15:35 -04:00
Jens Lee e2ba532cee
Fixed zimuku that now require anti-captcha 2023-04-21 06:25:09 -04:00
Christian Segundo e263927779
Fixed yifysubtitles url 2023-04-20 06:35:57 -04:00
Vitiko da542a311a Subdivx Provider: handle UnicodeEncodeError for some titles 2023-04-14 23:19:12 -04:00
Alex Yancey fab9f2ea85
no log: Fix a bug in Whisper provider caused by undetermined language (#2110) 2023-04-05 20:59:59 -04:00
Alex Yancey 8b1db07e9f
Added OpenAI Whisper Provider 2023-04-05 14:43:24 -04:00
Vitiko 1427a8ab73 SuperSubtitles provider: fix episode matching 2023-03-30 17:26:21 -04:00
morpheus65535 ef67cd4792 Fixed opensubtitles.com provider year matching process. 2023-03-27 20:15:19 -04:00
morpheus65535 9bd2ab514e Fixed HI subtitles wrongly ignored when normal or HI is selected in languages profile. 2023-03-19 20:59:44 -04:00
Vitiko 52507854e8 Titrari Provider: update search path 2023-03-16 14:30:27 -04:00
morpheus65535 7720d000de Fixed opensubtitles.com provider to prevent downloading of AI or machine translated subtitles. 2023-03-13 12:20:56 -04:00
Vitiko 587af7d138 Supersubtitles provider: fix #2092 2023-03-10 18:12:37 -04:00
Vitiko b07786411d no log: remove http adapter from subf2m (no longer needed) 2023-03-03 15:55:47 -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
morpheus65535 e4bf041ecb Fixed subtitles file naming when using hearing-impaired removal mods. 2023-03-01 16:04:27 -05:00
Fanx 72066245e0
Fixed zimuku 403 error caused by search url change 2023-02-22 15:25:45 -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
saddfox 7f05f932ff
Fixed podnapisi provider on host with OpenSSL 3 2023-02-09 06:09:56 -05:00
Vitiko c750fa45c8 no log: update import format 2023-02-07 19:28:55 -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 47aff78ab0 Subf2m Provider: add optional config for SSL verification
Temporary
2023-01-31 16:39:38 -04:00
morpheus65535 f057a77820 Improved impact on opensubtitles.com provider by simplifying queries to improve cache usage. 2023-01-31 14:52:13 -05: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
Ionuț Neagu 237e85bd34
Fixed RegieLive provider to use the official API 2023-01-09 07:47:44 -05:00
Alexandru Catalin Ene 9105c53d6a
Updated regielive provider to use built in search and scraper API 2023-01-05 21:37:07 -05:00
morpheus65535 e57a99d39e Fixed yifysubtitles provider. #2029 2022-12-31 11:14:09 -05: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 e6864a9001 Subf2m provider: handle 403 2022-12-20 15:47:11 -04:00
Alexandru Catalin Ene 82c9e14341
Updated regielive provider to use a search proxy 2022-12-20 06:26:52 -05:00
idanlah 577a0d6542
Fixed wizdom provider urls 2022-12-17 16:26:35 -05:00
Samuel Bartík 71e749724f
Improve titulky session expiration handling (#2014) 2022-12-14 17:05:41 -05:00
morpheus65535 383d906749 Removed Legendastv provider since the website as been shutdown. #2012 2022-12-13 21:16:00 -05:00
morpheus65535 993168e901 Added logging to legendasdivx provider when lxml isn't installed properly. #2009 2022-12-13 09:06:06 -05:00
morpheus65535 609c5d7847 Fixed wizdom provider when imdb id isn't available. #2001 2022-12-13 07:21:30 -05:00
morpheus65535 979301dee0 Updated opensubtitles.com to give more information to the download limit reached exception. 2022-12-12 06:33:31 -05:00
morpheus65535 01557cbfbf no log: deal with emails in opensubtitles.com 2022-12-04 10:24:59 -05:00
morpheus65535 1e4ffe9c60 Merge remote-tracking branch 'origin/development' into development 2022-11-26 15:27:08 -05:00
morpheus65535 65c6a67963 Fixed issue while guessing episode number from subtitles filename in some edge case. #1994 2022-11-26 15:26:54 -05:00
Vitiko 8c3a844071 Embedded Provider: improve streams filtering 2022-11-25 23:42:32 -04:00
morpheus65535 29a4842e2d Fixed issue when explicitly requested HI subtitles from opensubtitles.com, subtitrarinoi or titrari. 2022-11-25 22:21:01 -05:00
Vitiko 923bcb4382 Add 'other' attribute to Video class 2022-11-19 16:38:37 -04:00
morpheus65535 118eb09db0 Fixed some remaining issues with assrt. #1953 2022-11-18 15:41:08 -05:00
Vitiko e82dcb48bc no log: Argenteam Provider: add default match 2022-11-13 19:45:49 -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 1f7536680a no log: Subf2m Provider: update matcher
Year is already matched within the provider
2022-11-09 18:45:01 -04:00
morpheus65535 b369678165 no log: another fix for assrt. #1953 2022-11-09 16:14:09 -05:00
Vitiko 69e4a9c526 Subdivx Provider: improve series matching 2022-11-09 03:38:50 -04:00
Vitiko 0c92a1686a no log: Subf2m Provider: add optional parameter 2022-11-08 23:40:40 -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
morpheus65535 78f769d743 Improved assrt provider error message logging. #1953 2022-10-29 11:27:03 -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 254df4446f no log: add kwargs to private func 2022-10-26 16:55:00 -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 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
morpheus65535 0374790ed2 Fixed another issue with assrt. #1953 2022-10-16 23:13:52 -04:00
morpheus65535 7ea452c467 Fixed another issue with assrt. #1953 2022-10-13 08:33:20 -04:00
morpheus65535 8a5e05b86a Merge remote-tracking branch 'origin/development' into development 2022-10-09 21:54:32 -04:00
morpheus65535 167cb5dd98 Fixed maximum number of requests per minute for assrt provider. #1953 2022-10-09 21:54:11 -04:00
Samuel Bartík a82ab6769d
Fix titulky's subtitle downloading logic 2022-10-09 09:17:16 -04:00
Vitiko 571ffbccf8 Fix provider pool updates 2022-10-03 20:44:31 -04:00
Antoine Aflalo 7f1d3e1adf
Gestdown: Check for show before checking for subtitle (#1962)
Will reduce the number of different calls to the provider and only ask for subtitle when we know the show exists.
2022-10-02 13:17:00 -04:00
morpheus65535 8348b6c0dc Fixed subtitulamos.tv improper matching. #1960 2022-09-29 06:28:54 -04:00
morpheus65535 0980af1060 Fixed assrt provider to prevent making too many queries to the API. #1953 2022-09-28 10:18:56 -04:00
vitiko98 c791f39e53 Subdivx Provider: improve spanish detection 2022-09-27 17:21:13 -04:00
vitiko98 571f9a195c no log: fix gestdown provider logger 2022-09-26 18:21:24 -04:00
Antoine Aflalo 5413f31b41
Use new endpoint for gestdown (#1949)
This endpoint rely on caching from cloudflare and will better scale.

Right now, I'm getting around 3M request per day, so I'd like to use the caching as much as possible.
2022-09-26 18:09:41 -04:00