Zero fill identifier when adding movie

This commit is contained in:
Ruud
2014-03-09 23:39:46 +01:00
parent 61edcfe4f3
commit 58f198ddad
2 changed files with 10 additions and 3 deletions
+6 -2
View File
@@ -337,9 +337,13 @@ class Database(object):
'profile_id': profile_id,
'category_id': category_id,
'title': title
}, force_readd = False, search_after = False, update_after = False, notify_after = False, status = status, single = True)
added_media['files'] = added_media.get('files', {})
}, force_readd = False, search_after = False, update_after = False, notify_after = False, status = status, single = True)
if not added_media:
log.error('Failed adding media %s: %s', (l.get('identifier'), info))
continue
added_media['files'] = added_media.get('files', {})
for f in files:
ffile = all_files[f.get('file_id')]