Use correct id returned from automation add. fix #3050

This commit is contained in:
Ruud
2014-04-01 20:38:27 +02:00
parent 39fb3a1107
commit 0f7c3f5d0f

View File

@@ -37,7 +37,7 @@ class Automation(Plugin):
if not added:
added_movie = fireEvent('movie.add', params = {'identifier': imdb_id}, force_readd = False, search_after = False, update_after = True, single = True)
if added_movie:
movie_ids.append(added_movie['id'])
movie_ids.append(added_movie['_id'])
Env.prop(prop_name, True)
for movie_id in movie_ids: