Skip to content

Commit

Permalink
Removed support for BSplayer providers because it was causing way muc…
Browse files Browse the repository at this point in the history
…h issue than providing subtitles.
  • Loading branch information
morpheus65535 committed Apr 6, 2022
1 parent 137aa69 commit 77da09d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions frontend/src/pages/Settings/Providers/list.ts
Expand Up @@ -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",
Expand Down
9 changes: 6 additions & 3 deletions libs/subliminal_patch/providers/bsplayer.py
Expand Up @@ -86,8 +86,9 @@ def initialize(self):
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()
Expand Down Expand Up @@ -238,7 +239,9 @@ def query(self, video, video_hash, language):
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
Expand Down

0 comments on commit 77da09d

Please sign in to comment.