First patch to stop albums with no release date from being marked as wanted - might need some frontend work in the UI to correct the sorting

This commit is contained in:
rembo10
2012-08-20 17:06:50 +05:30
parent 452b83e197
commit f9a048b8f8

View File

@@ -326,8 +326,8 @@ def getRelease(releaseid, include_artist_info=True):
release['title'] = unicode(results['title'])
release['id'] = unicode(results['id'])
release['asin'] = unicode(results['asin']) if 'asin' in results else u'None'
release['date'] = unicode(results['date']) if 'date' in results else u'None'
release['asin'] = unicode(results['asin']) if 'asin' in results else None
release['date'] = unicode(results['date']) if 'date' in results else None
try:
release['format'] = unicode(results['medium-list'][0]['format'])
except: