From d0cd4bcb370de88689c2db89ca29b264d2eb88b4 Mon Sep 17 00:00:00 2001 From: Patrick Speiser Date: Tue, 29 May 2012 23:09:12 +0200 Subject: [PATCH] Fixed a bug where releases without a release date would be automatically added as the newest release and usually set as wanted. --- headphones/mb.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/headphones/mb.py b/headphones/mb.py index 3140292b..91d6fb73 100644 --- a/headphones/mb.py +++ b/headphones/mb.py @@ -281,6 +281,13 @@ def getReleaseGroup(rgid): if not releaseResult: continue + #skip releases that do not have any release date associated with them + #if we don't do this the albums will get the release date "None" and will + #automatically be set to wanted if "Automatically Mark Upcoming Albums as Wanted" is set + #because None is not a valid date and will never be in the past so it is always upcoming + if 'date' not in releaseResult: + continue + if releaseGroup['type'] == 'live' and releaseResult['status'] != 'Official': logger.debug('%s is not an official live album. Skipping' % releaseResult.name) continue