diff options
-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 |