Only migrate file if it is found
This commit is contained in:
1 parent
ec4e680d62
commit
d2b82a37b2
1 file changed
+2
-1
@@ -318,8 +318,9 @@ class Database(object):
|
||||
if file.get('type_id') == poster_type.get('id'):
|
||||
if not added_media['files'].get('image_poster'):
|
||||
added_media['files']['image_poster'] = []
|
||||
if file.get('path') not in added_media['files']['image_poster']:
|
||||
if file.get('path') not in added_media['files']['image_poster'] and os.path.isfile(file.get('path')):
|
||||
added_media['files']['image_poster'].append(file.get('path'))
|
||||
|
||||
db.update(added_media)
|
||||
|
||||
for rel in releases:
|
||||
|
||||
Reference in new issue
Block a user