From 678f919b7ceff6966e9da6b705bd5b97cd29be76 Mon Sep 17 00:00:00 2001 From: Remy Date: Fri, 19 Aug 2011 15:45:24 +0800 Subject: [PATCH] Fixed https sab host bug --- headphones/sab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/sab.py b/headphones/sab.py index 8c20d717..6174aca6 100644 --- a/headphones/sab.py +++ b/headphones/sab.py @@ -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)