From 29dacdfb862d48262db40aebcb1f51d223400ce9 Mon Sep 17 00:00:00 2001 From: Remy Date: Tue, 2 Aug 2011 12:18:58 -0700 Subject: [PATCH] Bug fixes: hanging after failed nzbs.org attempt, retriving rgid from mb during force post process --- headphones/mb.py | 2 +- headphones/searcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/mb.py b/headphones/mb.py index 72cb4c8b..dbf92f6d 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -374,7 +374,7 @@ def findAlbumID(artist=None, album=None): - term = album + '" AND artist:"'+artist+'"' + term = album + ' AND artist:"'+artist+'"' f = ws.ReleaseGroupFilter(query=term, limit=1) results = None diff --git a/headphones/searcher.py b/headphones/searcher.py index 998f3404..c5fc8f28 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -210,7 +210,7 @@ def searchNZB(albumid=None, new=False): logger.error('Unable to get the NZBs.org feed. Check that your settings are correct - post a bug if they are') items = None - if len(items): + if items: for item in items: