Fixed https sab host bug

This commit is contained in:
Remy
2011-08-19 15:45:24 +08:00
committed by Pablo Alcantara
parent 94aa377e43
commit 678f919b7c

View File

@@ -65,7 +65,7 @@ def sendNZB(nzb):
params['mode'] = 'addfile'
multiPartParams = {"nzbfile": (nzb.name+".nzb", nzb.extraInfo[0])}
if not headphones.SAB_HOST.startswith('http://') or headphones.SAB_HOST.startswith('https://'):
if not headphones.SAB_HOST.startswith('http'):
headphones.SAB_HOST = 'http://' + headphones.SAB_HOST
url = headphones.SAB_HOST + "/" + "api?" + urllib.urlencode(params)