mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Fixed https sab host bug
This commit is contained in:
@@ -65,7 +65,7 @@ def sendNZB(nzb):
|
|||||||
params['mode'] = 'addfile'
|
params['mode'] = 'addfile'
|
||||||
multiPartParams = {"nzbfile": (nzb.name+".nzb", nzb.extraInfo[0])}
|
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
|
headphones.SAB_HOST = 'http://' + headphones.SAB_HOST
|
||||||
|
|
||||||
url = headphones.SAB_HOST + "/" + "api?" + urllib.urlencode(params)
|
url = headphones.SAB_HOST + "/" + "api?" + urllib.urlencode(params)
|
||||||
|
|||||||
Reference in New Issue
Block a user