changeset 1:df1b98df8be9

storing empty list for genre instead of None when there is now genre
author Goffi <goffi@goffi.org>
date Wed, 21 Jul 2010 15:53:29 +0800
parents c6e7b3287d65
children 6f4b5e24cf08
files lm
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lm	Wed Jul 21 15:43:54 2010 +0800
+++ b/lm	Wed Jul 21 15:53:29 2010 +0800
@@ -253,7 +253,7 @@
         current['canonical_title'] = found.get('smart canonical title') or title
         current['rating'] = found.get('rating')
         current['year'] = found.get('year')
-        current['genre'] = found.get('genre')
+        current['genre'] = found.get('genre') or []
         current['director'] = [director.get('name') for director in (found.get('director') or [])]
         current['short_summary'] = found.get('plot outline')
         current['summary'] = (found.get('plot') or [''])[0]