From eae8f65e151ade21cb4ef22c3aa9c91f49d45eb1 Mon Sep 17 00:00:00 2001 From: ShyPike Date: Mon, 17 Oct 2011 11:58:05 +0200 Subject: [PATCH] Prevent reading newzbin bookmarks when no newzbin credentials are known. --- sabnzbd/newzbin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sabnzbd/newzbin.py b/sabnzbd/newzbin.py index 7ea3c4d..0c8c0c4 100644 --- a/sabnzbd/newzbin.py +++ b/sabnzbd/newzbin.py @@ -274,6 +274,9 @@ class Bookmarks(object): @synchronized(BOOK_LOCK) def run(self, delete=None): + if not (cfg.newzbin_bookmarks() and cfg.newzbin_username() and cfg.newzbin_password()): + return + headers = { 'User-Agent': 'SABnzbd+/%s' % sabnzbd.__version__, } # Connect to Newzbin