mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 05:33:37 +00:00
Merge branch 'master' of https://github.com/jmelen/SickRage into dev
This commit is contained in:
commit
73cfb28234
1 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
from httplib import HTTPSConnection, HTTPException
|
from httplib import HTTPSConnection, HTTPException
|
||||||
from urllib import urlencode
|
import json
|
||||||
from ssl import SSLError
|
from ssl import SSLError
|
||||||
import sickbeard
|
import sickbeard
|
||||||
from sickbeard import logger, common
|
from sickbeard import logger, common
|
||||||
|
@ -97,8 +97,9 @@ class PushbulletNotifier:
|
||||||
'body': message.encode('utf-8'),
|
'body': message.encode('utf-8'),
|
||||||
'device_iden': pushbullet_device,
|
'device_iden': pushbullet_device,
|
||||||
'type': notificationType}
|
'type': notificationType}
|
||||||
http_handler.request(method, uri, body=urlencode(data),
|
data = json.dumps(data)
|
||||||
headers={'Authorization': 'Basic %s' % authString})
|
http_handler.request(method, uri, body=data,
|
||||||
|
headers={'Content-Type': 'application/json', 'Authorization': 'Basic %s' % authString})
|
||||||
pass
|
pass
|
||||||
except (SSLError, HTTPException):
|
except (SSLError, HTTPException):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue