mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-04 05:52:24 +08:00
Fixed opensubtitles.com provider to prevent downloading of AI or machine translated subtitles.
This commit is contained in:
parent
fb6ac47bea
commit
7720d000de
1 changed files with 6 additions and 2 deletions
|
@ -282,9 +282,11 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
||||||
res = self.retry(
|
res = self.retry(
|
||||||
lambda: checked(
|
lambda: checked(
|
||||||
lambda: self.session.get(self.server_url + 'subtitles',
|
lambda: self.session.get(self.server_url + 'subtitles',
|
||||||
params=(('episode_number', self.video.episode),
|
params=(('ai_translated', 'exclude'),
|
||||||
|
('episode_number', self.video.episode),
|
||||||
('imdb_id', imdb_id if not title_id else None),
|
('imdb_id', imdb_id if not title_id else None),
|
||||||
('languages', langs.lower()),
|
('languages', langs.lower()),
|
||||||
|
('machine_translated', 'exclude'),
|
||||||
('moviehash', file_hash),
|
('moviehash', file_hash),
|
||||||
('parent_feature_id', title_id if title_id else None),
|
('parent_feature_id', title_id if title_id else None),
|
||||||
('season_number', self.video.season)),
|
('season_number', self.video.season)),
|
||||||
|
@ -298,9 +300,11 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
||||||
res = self.retry(
|
res = self.retry(
|
||||||
lambda: checked(
|
lambda: checked(
|
||||||
lambda: self.session.get(self.server_url + 'subtitles',
|
lambda: self.session.get(self.server_url + 'subtitles',
|
||||||
params=(('id', title_id if title_id else None),
|
params=(('ai_translated', 'exclude'),
|
||||||
|
('id', title_id if title_id else None),
|
||||||
('imdb_id', imdb_id if not title_id else None),
|
('imdb_id', imdb_id if not title_id else None),
|
||||||
('languages', langs.lower()),
|
('languages', langs.lower()),
|
||||||
|
('machine_translated', 'exclude'),
|
||||||
('moviehash', file_hash)),
|
('moviehash', file_hash)),
|
||||||
timeout=30),
|
timeout=30),
|
||||||
validate_json=True,
|
validate_json=True,
|
||||||
|
|
Loading…
Reference in a new issue