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 | |
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.
-rw-r--r-- | frontend/src/pages/Settings/Providers/list.ts | 2 | ||||
-rw-r--r-- | libs/subliminal_patch/providers/bsplayer.py | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/frontend/src/pages/Settings/Providers/list.ts b/frontend/src/pages/Settings/Providers/list.ts index 163ae0ff8..83fc64630 100644 --- a/frontend/src/pages/Settings/Providers/list.ts +++ b/frontend/src/pages/Settings/Providers/list.ts @@ -55,6 +55,8 @@ export const ProviderList: Readonly<ProviderInfo[]> = [ { key: "bsplayer", name: "BSplayer", + description: + "Provider removed from Bazarr because it was causing too much issues so it will always return no subtitles", }, { key: "embeddedsubtitles", 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 |