From e03c7b4c1cd462f063ecedae34340cd85634ffab Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 19 Feb 2012 12:37:25 +0100 Subject: [PATCH] Merge lists, not overwrite --- couchpotato/core/helpers/variable.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/couchpotato/core/helpers/variable.py b/couchpotato/core/helpers/variable.py index c3a9980a..f38cf39c 100644 --- a/couchpotato/core/helpers/variable.py +++ b/couchpotato/core/helpers/variable.py @@ -34,6 +34,8 @@ def mergeDicts(a, b): else: if isDict(current_src[key]) and isDict(current_dst[key]): stack.append((current_dst[key], current_src[key])) + elif isinstance(current_src[key], list) and isinstance(current_dst[key], list): + current_dst[key].extend(current_src[key]) else: current_dst[key] = current_src[key] return dst