From ef56f37a6d91d5d63ff7403749487727705c6c06 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Tue, 29 May 2012 19:23:42 +0530 Subject: [PATCH] Possible fix for nzbs not being sent to sab without username/password/apikey --- headphones/sab.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headphones/sab.py b/headphones/sab.py index 7af877f7..98085ba2 100644 --- a/headphones/sab.py +++ b/headphones/sab.py @@ -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