# HG changeset patch # User Goffi # Date 1279698809 -28800 # Node ID df1b98df8be913fa3a72e2a5170b0b7d6f95868e # Parent c6e7b3287d651d99076894d648440ae9dde0bea1 storing empty list for genre instead of None when there is now genre diff -r c6e7b3287d65 -r df1b98df8be9 lm --- 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]