Check if identifier exists before adding release. fix #1048
This commit is contained in:
1 parent
2dcc1e096e
commit
e7aafc406f
1 file changed
+2
-2
@@ -153,7 +153,7 @@ class Manage(Plugin):
|
|||||||
'to_go': total_found,
|
'to_go': total_found,
|
||||||
}
|
}
|
||||||
|
|
||||||
if group['library']:
|
if group['library'] and group['library'].get('identifier'):
|
||||||
identifier = group['library'].get('identifier')
|
identifier = group['library'].get('identifier')
|
||||||
added_identifiers.append(identifier)
|
added_identifiers.append(identifier)
|
||||||
|
|
||||||
@@ -187,5 +187,5 @@ class Manage(Plugin):
|
|||||||
groups = fireEvent('scanner.scan', folder = folder, files = files, single = True)
|
groups = fireEvent('scanner.scan', folder = folder, files = files, single = True)
|
||||||
|
|
||||||
for group in groups.itervalues():
|
for group in groups.itervalues():
|
||||||
if group['library']:
|
if group['library'] and group['library'].get('identifier'):
|
||||||
fireEvent('release.add', group = group)
|
fireEvent('release.add', group = group)
|
||||||
Reference in new issue
Block a user