Browse Source

Use correct keys when renaming media

pull/3111/head
Ruud 11 years ago
parent
commit
c9be74ce80
  1. 4
      couchpotato/core/plugins/renamer/main.py

4
couchpotato/core/plugins/renamer/main.py

@ -227,7 +227,7 @@ class Renamer(Plugin):
media_title = getTitle(group) media_title = getTitle(group)
# Add _UNKNOWN_ if no library item is connected # 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') self.tagRelease(group = group, tag = 'unknown')
continue continue
# Rename the files using the library data # Rename the files using the library data
@ -238,7 +238,7 @@ class Renamer(Plugin):
group['media'] = fireEvent('movie.add', params = { group['media'] = fireEvent('movie.add', params = {
'identifier': group['identifier'], 'identifier': group['identifier'],
'profile_id': None 'profile_id': None
}, search_after = False, status = 'done') }, search_after = False, status = 'done', single = True)
else: else:
group['media'] = fireEvent('movie.update_info', identifier = group['media']['identifier'], single = True) group['media'] = fireEvent('movie.update_info', identifier = group['media']['identifier'], single = True)

Loading…
Cancel
Save