From aa9d669a2b3a0bbb9d09f2ebb224cda3059f8a8c Mon Sep 17 00:00:00 2001 From: Jens Rogier Date: Mon, 14 Apr 2014 21:28:06 +0200 Subject: [PATCH] Fixed problem where albums with secondary types still got added --- headphones/mb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/mb.py b/headphones/mb.py index 25061bf3..0ff32482 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -200,7 +200,7 @@ def getArtist(artistid, extrasonly=False): if not extrasonly: for rg in artist['release-group-list']: - if rg['type'] != 'Album': #only add releases without a secondary type + if "secondary-type-list" in rg.keys(): #only add releases without a secondary type continue releasegroups.append({ 'title': unicode(rg['title']),