diff options
author | morpheus65535 <[email protected]> | 2022-04-06 11:34:21 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-04-06 11:34:21 -0400 |
commit | 77da09d51f549470c0e9be2eb670de74450dd791 (patch) | |
tree | d9be3244f1e0f275dfbf110e76889ed343b85062 /libs | |
parent | 137aa698bbd0effc7493e778b5f086724c8b8816 (diff) | |
download | bazarr-77da09d51f549470c0e9be2eb670de74450dd791.tar.gz bazarr-77da09d51f549470c0e9be2eb670de74450dd791.zip |
Removed support for BSplayer providers because it was causing way much issue than providing subtitles.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/bsplayer.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/subliminal_patch/providers/bsplayer.py b/libs/subliminal_patch/providers/bsplayer.py index 33de75f0d..de979a1b7 100644 --- a/libs/subliminal_patch/providers/bsplayer.py +++ b/libs/subliminal_patch/providers/bsplayer.py @@ -86,8 +86,9 @@ class BSPlayerProvider(Provider): adapter = HTTPAdapter(max_retries=retry) self.session.mount("http://", adapter) - self.search_url = self.get_sub_domain() - self.login() + # commented out this part to prevent usage of this provider and return no subtitles + # self.search_url = self.get_sub_domain() + # self.login() def terminate(self): self.session.close() @@ -238,7 +239,9 @@ class BSPlayerProvider(Provider): return subtitles def list_subtitles(self, video, languages): - return self.query(video, video.hashes["bsplayer"], languages) + return [] + # commented out this part to prevent usage of this provider and return no subtitles + # return self.query(video, video.hashes["bsplayer"], languages) def get_sub_domain(self): # API_URL_TEMPLATE = None |