Private GIT

Skip to content
Snippets Groups Projects
Commit e7aafc40 authored by Ruud's avatar Ruud
Browse files

Check if identifier exists before adding release. fix #1048

parent 2dcc1e09
No related branches found
No related tags found
No related merge requests found
...@@ -153,7 +153,7 @@ class Manage(Plugin): ...@@ -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): ...@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment