From 779cac144812a3094cee72070a0af25192fb6268 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sun, 10 Oct 2021 20:49:20 -0400 Subject: [PATCH] no log: another fix for os.com --- libs/subliminal_patch/providers/opensubtitlescom.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/subliminal_patch/providers/opensubtitlescom.py b/libs/subliminal_patch/providers/opensubtitlescom.py index 51ddded6a..c97f765d1 100644 --- a/libs/subliminal_patch/providers/opensubtitlescom.py +++ b/libs/subliminal_patch/providers/opensubtitlescom.py @@ -279,14 +279,16 @@ class OpenSubtitlesComProvider(ProviderRetryMixin, Provider): ('languages', langs.lower()), ('moviehash', hash), ('parent_feature_id', title_id), - ('season_number', self.video.season)), + ('season_number', self.video.season), + ('query', os.path.basename(self.video.name))), timeout=30) else: res = self.session.get(self.server_url + 'subtitles', params=(('foreign_parts_only', forced), ('id', title_id), ('languages', langs.lower()), - ('moviehash', hash)), + ('moviehash', hash), + ('query', os.path.basename(self.video.name))), timeout=30) if res.status_code == 429: