mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-08 04:18:09 -05:00
Merge pull request #1289 from abeloin/patch-synology_ssl
Disable ssl checking in synology client
This commit is contained in:
commit
37ab5bb45b
@ -36,7 +36,7 @@ class DownloadStationAPI(GenericClient):
|
|||||||
auth_url = self.host + 'webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=' + self.username + '&passwd=' + self.password + '&session=DownloadStation&format=sid'
|
auth_url = self.host + 'webapi/auth.cgi?api=SYNO.API.Auth&version=2&method=login&account=' + self.username + '&passwd=' + self.password + '&session=DownloadStation&format=sid'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.response = self.session.get(auth_url)
|
self.response = self.session.get(auth_url, verify=False)
|
||||||
self.auth = self.response.json()['data']['sid']
|
self.auth = self.response.json()['data']['sid']
|
||||||
except:
|
except:
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user