mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Verify patch connection
This commit is contained in:
parent
5839075424
commit
9c01340af4
1 changed files with 11 additions and 7 deletions
|
@ -368,17 +368,21 @@ def get_objects(src, filename):
|
||||||
|
|
||||||
LOG.info("From %s to %s", src, path.decode('utf-8'))
|
LOG.info("From %s to %s", src, path.decode('utf-8'))
|
||||||
try:
|
try:
|
||||||
response = requests.get(src, stream=True, verify=False)
|
response = requests.get(src, stream=True, verify=True)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
except requests.exceptions.SSLError as error:
|
||||||
|
|
||||||
|
LOG.error(error)
|
||||||
|
response = requests.get(src, stream=True, verify=False)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
raise
|
raise
|
||||||
else:
|
|
||||||
dl = xbmcvfs.File(path, 'w')
|
|
||||||
dl.write(response.content)
|
|
||||||
dl.close()
|
|
||||||
del response
|
|
||||||
|
|
||||||
settings('appliedPatch', filename)
|
dl = xbmcvfs.File(path, 'w')
|
||||||
|
dl.write(response.content)
|
||||||
|
dl.close()
|
||||||
|
del response
|
||||||
|
|
||||||
|
settings('appliedPatch', filename)
|
||||||
|
|
||||||
unzip(path, temp, "objects")
|
unzip(path, temp, "objects")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue