Skip to content

Commit

Permalink
Tried to fix the issues with bsplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed May 7, 2021
1 parent 29ad8c6 commit a555617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/subliminal_patch/providers/bsplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def get_sub_domain(self):
TEST_URL = "http://{}.api.bsplayer-subtitles.com".format(domain)
try:
logging.debug("Testing BSplayer sub-domain {}".format(TEST_URL))
res = self.session.get(TEST_URL, timeout=10)
res = self.session.get(TEST_URL, timeout=3)
except:
continue
else:
Expand All @@ -280,7 +280,7 @@ def get_sub_domain(self):
)
break
else:
sleep(5)
sleep(1)
continue

if self.API_URL_TEMPLATE:
Expand Down

0 comments on commit a555617

Please sign in to comment.