Use correct keys when renaming media
This commit is contained in:
1 parent
f5d29eafe0
commit
c9be74ce80
1 file changed
+2
-2
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user