mirror of https://github.com/morpheus65535/bazarr
no log: another fix for os.com
This commit is contained in:
parent
249437deb4
commit
779cac1448
|
@ -279,14 +279,16 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider):
|
||||||
('languages', langs.lower()),
|
('languages', langs.lower()),
|
||||||
('moviehash', hash),
|
('moviehash', hash),
|
||||||
('parent_feature_id', title_id),
|
('parent_feature_id', title_id),
|
||||||
('season_number', self.video.season)),
|
('season_number', self.video.season),
|
||||||
|
('query', os.path.basename(self.video.name))),
|
||||||
timeout=30)
|
timeout=30)
|
||||||
else:
|
else:
|
||||||
res = self.session.get(self.server_url + 'subtitles',
|
res = self.session.get(self.server_url + 'subtitles',
|
||||||
params=(('foreign_parts_only', forced),
|
params=(('foreign_parts_only', forced),
|
||||||
('id', title_id),
|
('id', title_id),
|
||||||
('languages', langs.lower()),
|
('languages', langs.lower()),
|
||||||
('moviehash', hash)),
|
('moviehash', hash),
|
||||||
|
('query', os.path.basename(self.video.name))),
|
||||||
timeout=30)
|
timeout=30)
|
||||||
|
|
||||||
if res.status_code == 429:
|
if res.status_code == 429:
|
||||||
|
|
Loading…
Reference in New Issue