diff --git a/ox/web/wikipedia.py b/ox/web/wikipedia.py index b0e93e4..0a7436f 100644 --- a/ox/web/wikipedia.py +++ b/ox/web/wikipedia.py @@ -65,7 +65,11 @@ def get_movie_data(wikipedia_url): key = key.strip() if value: if key in filmbox: - filmbox[key] += value + print key, value, filmbox + if isinstance(value, list) and isinstance(filmbox[key], basestring): + filmbox[key] = [filmbox[key]] + value + else: + filmbox[key] += value if isinstance(filmbox[key], list): filmbox[key] = [k for k in filmbox[key] if k] else: