Merge pull request #188 from JackDandy/feature/FixSynologyAuthSSL

Fix SSL authentication on Synology stations.
This commit is contained in:
JackDandy 2015-02-14 16:51:03 +00:00
commit cdb3e660ec
2 changed files with 2 additions and 1 deletions

View file

@ -48,6 +48,7 @@
* Fix issue where PMS text wasn't initialised on the config/notifications page and added info about Plex clients * Fix issue where PMS text wasn't initialised on the config/notifications page and added info about Plex clients
* Add ability to test Plex Server(s) on config/notifications page * Add ability to test Plex Server(s) on config/notifications page
* Add percentage of episodes downloaded to footer and remove double spaces in text * Add percentage of episodes downloaded to footer and remove double spaces in text
* Fix SSL authentication on Synology stations
[develop changelog] [develop changelog]
* Change uT params from unicode to str.format as magnet URLs worked but sending files in POST bodies failed * Change uT params from unicode to str.format as magnet URLs worked but sending files in POST bodies failed

View file

@ -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