Browse Source

Prevent reading newzbin bookmarks when no newzbin credentials are known.

pull/7/merge
ShyPike 14 years ago
parent
commit
eae8f65e15
  1. 3
      sabnzbd/newzbin.py

3
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

Loading…
Cancel
Save