From 0f7c3f5d0f0c990f7cdebd924ef0901009f2c1af Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 1 Apr 2014 20:38:27 +0200 Subject: [PATCH] Use correct id returned from automation add. fix #3050 --- couchpotato/core/plugins/automation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/automation.py b/couchpotato/core/plugins/automation.py index b0566249..39d7c9e7 100644 --- a/couchpotato/core/plugins/automation.py +++ b/couchpotato/core/plugins/automation.py @@ -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: