Removed support for BSplayer providers because it was causing way much issue than providing subtitles.

pull/1799/head
morpheus65535 3 years ago
parent 137aa698bb
commit 77da09d51f

@ -55,6 +55,8 @@ export const ProviderList: Readonly<ProviderInfo[]> = [
{ {
key: "bsplayer", key: "bsplayer",
name: "BSplayer", name: "BSplayer",
description:
"Provider removed from Bazarr because it was causing too much issues so it will always return no subtitles",
}, },
{ {
key: "embeddedsubtitles", key: "embeddedsubtitles",

@ -86,8 +86,9 @@ class BSPlayerProvider(Provider):
adapter = HTTPAdapter(max_retries=retry) adapter = HTTPAdapter(max_retries=retry)
self.session.mount("http://", adapter) self.session.mount("http://", adapter)
self.search_url = self.get_sub_domain() # commented out this part to prevent usage of this provider and return no subtitles
self.login() # self.search_url = self.get_sub_domain()
# self.login()
def terminate(self): def terminate(self):
self.session.close() self.session.close()
@ -238,7 +239,9 @@ class BSPlayerProvider(Provider):
return subtitles return subtitles
def list_subtitles(self, video, languages): 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): def get_sub_domain(self):
# API_URL_TEMPLATE = None # API_URL_TEMPLATE = None

Loading…
Cancel
Save