Check if identifier exists before adding release. fix #1048

This commit is contained in:
Ruud
2012-12-17 21:10:30 +01:00
parent 2dcc1e096e
commit e7aafc406f

View File

@@ -153,7 +153,7 @@ class Manage(Plugin):
'to_go': total_found,
}
if group['library']:
if group['library'] and group['library'].get('identifier'):
identifier = group['library'].get('identifier')
added_identifiers.append(identifier)
@@ -187,5 +187,5 @@ class Manage(Plugin):
groups = fireEvent('scanner.scan', folder = folder, files = files, single = True)
for group in groups.itervalues():
if group['library']:
if group['library'] and group['library'].get('identifier'):
fireEvent('release.add', group = group)