Tried to fix the issues with bsplayer

This commit is contained in:
morpheus65535 2021-05-06 23:08:16 -04:00
parent 29ad8c6122
commit a555617738
1 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ class BSPlayerProvider(Provider):
TEST_URL = "http://{}.api.bsplayer-subtitles.com".format(domain) TEST_URL = "http://{}.api.bsplayer-subtitles.com".format(domain)
try: try:
logging.debug("Testing BSplayer sub-domain {}".format(TEST_URL)) 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: except:
continue continue
else: else:
@ -280,7 +280,7 @@ class BSPlayerProvider(Provider):
) )
break break
else: else:
sleep(5) sleep(1)
continue continue
if self.API_URL_TEMPLATE: if self.API_URL_TEMPLATE: