Fixed a bug where releases without a release date would be automatically added as the newest release and usually set as wanted.

This commit is contained in:
Patrick Speiser
2012-05-29 23:09:12 +02:00
parent f4cc189c24
commit d0cd4bcb37

View File

@@ -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