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: