From f91c1e0cc4b3f5380ea604583e69d4be13463421 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 31 May 2009 08:38:20 -0700 Subject: [PATCH] IGN:Misc bug fixes --- src/calibre/library/database2.py | 2 ++ src/calibre/web/feeds/recipes/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/database2.py b/src/calibre/library/database2.py index d26686e412..d138d567c7 100644 --- a/src/calibre/library/database2.py +++ b/src/calibre/library/database2.py @@ -1335,6 +1335,8 @@ class LibraryDatabase2(LibraryDatabase): data.append(x) x['id'] = record[FIELD_MAP['id']] x['formats'] = [] + if not x['authors']: + x['authors'] = _('Unknown') x['authors'] = [i.replace('|', ',') for i in x['authors'].split(',')] if authors_as_string: x['authors'] = authors_to_string(x['authors']) diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 968ed9a6f0..ae3db02a5a 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -44,7 +44,7 @@ recipe_modules = ['recipe_' + r for r in ( 'stackoverflow', 'telepolis_artikel', 'zaobao', 'usnews', 'straitstimes', 'index_hu', 'pcworld_hu', 'hrt', 'rts', 'h1', 'h2', 'h3', 'phd_comics', 'woz_die', 'elektrolese', - 'climate_progress', 'carta', + 'climate_progress', 'carta', 'slashdot', )] import re, imp, inspect, time, os