From c9be74ce8019575505ddf423ad54f29c6a8d6908 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 8 Mar 2014 22:15:07 +0100 Subject: [PATCH] Use correct keys when renaming media --- couchpotato/core/plugins/renamer/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index 00cdbc0..8d14550 100755 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -227,7 +227,7 @@ class Renamer(Plugin): media_title = getTitle(group) # Add _UNKNOWN_ if no library item is connected - if not group.get('info') or not media_title: + if not group.get('media') or not media_title: self.tagRelease(group = group, tag = 'unknown') continue # Rename the files using the library data @@ -238,7 +238,7 @@ class Renamer(Plugin): group['media'] = fireEvent('movie.add', params = { 'identifier': group['identifier'], 'profile_id': None - }, search_after = False, status = 'done') + }, search_after = False, status = 'done', single = True) else: group['media'] = fireEvent('movie.update_info', identifier = group['media']['identifier'], single = True)