Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/commit/83e36e4c1c58a73966e4d0f924e071b73e8e00ec You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fixed JSON parsing exception in supersubtitles provider.

pull/1704/head v1.0.3-beta.22
morpheus65535 3 years ago
parent 6b36920b1c
commit 83e36e4c1c

@ -7,6 +7,7 @@ import time
from babelfish import language_converters
from subzero.language import Language
from requests import Session
from requests.exceptions import JSONDecodeError
import urllib.parse
from random import randint
@ -383,7 +384,11 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
if episode:
url += "&rtol=" + str(episode)
results = self.session.get(url, timeout=10).json()
try:
results = self.session.get(url, timeout=10).json()
except JSONDecodeError:
# provider returned improper JSON
results = None
'''
The result will be a JSON like this:

Loading…
Cancel
Save