1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-21 13:37:34 +00:00

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

This commit is contained in:
morpheus65535 2022-04-06 11:34:21 -04:00
parent 137aa698bb
commit 77da09d51f
2 changed files with 8 additions and 3 deletions

View file

@ -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",

View file

@ -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