From 63aee8e010afa659c20cc908aefe6d826f0809ab Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 17 Oct 2011 21:43:42 +0200 Subject: [PATCH] move items --- pandora/item/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index ff60fd8c2..875681c11 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -70,8 +70,8 @@ def get_item(info, user=None, async=False): season, episode, episodeTitle, episodeDirector, episodeYear ''' item_data = { - 'title': info['title'], - 'director': info['director'], + 'title': info.get('title', ''), + 'director': info.get('director', []), 'year': info.get('year', '') } for key in ('episodeTitle', 'episodeDirector', 'episodeYear',