Commit Graph

85 Commits

Author SHA1 Message Date
Vitiko 4430ec8f3e Subtitle class: get format dinamically (fix #2514) 2024-06-18 17:44:12 -04:00
Anderson Shindy Oki 77ebd036f2
Added animetosho provider 2024-04-14 08:19:13 -04:00
Vitiko d9629df3af Subdivx Provider: major updates 2024-02-23 03:25:20 -04:00
MrHereAndThere ad8f116c78
Updated fallback language for embeddedsubtitles provider to be able to specify the one to use 2024-02-19 21:10:27 -05:00
Vitiko deef13d11b Add Argenteam Dump Provider 2024-01-28 17:18:48 -04:00
morpheus65535 783e6b38ea Removed aRGENTeaM provider that have been recently closed. #2352 2024-01-12 06:41:51 -05:00
Vitiko b9648172ba Subdivx provider: improve movies matches
Add one year tolerancy for movies. False positives probability
is low enough to do so.

(Fix #2245)
2023-09-18 15:15:36 -04:00
Vitiko c11af96950 Embedded subtitles: fix #2195 2023-07-23 23:40:20 -04:00
Vitiko 4921c55bf0 Subf2m provider: improve episode matching 2023-06-18 17:18:49 -04:00
Vitiko 6ac5bc7d4d Embedded Subtitles provider: Fix #2171 2023-06-13 17:53:51 -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 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