Possible fix for nzbs not being sent to sab without username/password/apikey

This commit is contained in:
rembo10
2012-05-29 19:23:42 +05:30
parent 02ee239f32
commit ef56f37a6d

View File

@@ -31,13 +31,13 @@ def sendNZB(nzb):
params = {}
if headphones.SAB_USERNAME != None:
if headphones.SAB_USERNAME:
params['ma_username'] = headphones.SAB_USERNAME
if headphones.SAB_PASSWORD != None:
if headphones.SAB_PASSWORD:
params['ma_password'] = headphones.SAB_PASSWORD
if headphones.SAB_APIKEY != None:
if headphones.SAB_APIKEY:
params['apikey'] = headphones.SAB_APIKEY
if headphones.SAB_CATEGORY != None:
if headphones.SAB_CATEGORY:
params['cat'] = headphones.SAB_CATEGORY