From e7aafc406f19911b5ca281412725bd781a13c4df Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 17 Dec 2012 21:10:30 +0100 Subject: [PATCH] Check if identifier exists before adding release. fix #1048 --- couchpotato/core/plugins/manage/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/manage/main.py b/couchpotato/core/plugins/manage/main.py index f09a127e..f9e1c4c3 100644 --- a/couchpotato/core/plugins/manage/main.py +++ b/couchpotato/core/plugins/manage/main.py @@ -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)