Profile references before assigned. fix #3220

This commit is contained in:
Ruud
2014-05-08 16:40:27 +02:00
parent d301cde266
commit 66b4821f7f

View File

@@ -450,6 +450,7 @@ class Renamer(Plugin):
remove_leftovers = True
# Mark movie "done" once it's found the quality with the finish check
profile = None
try:
if media.get('status') == 'active' and media.get('profile_id'):
profile = db.get('id', media['profile_id'])