From 039f0b855e7db4db21fa76568c348ed662af3e88 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Sep 2008 16:28:02 -0700 Subject: [PATCH] Added recipes for Scientific American and Discover Magazine --- src/calibre/web/feeds/recipes/__init__.py | 1 + src/calibre/web/fetch/simple.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index ba09ff69bb..b9be819568 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -9,6 +9,7 @@ recipes = [ 'nytimes', 'usatoday', 'outlook_india', 'bbc', 'greader', 'wsj', 'wired', 'globe_and_mail', 'smh', 'espn', 'business_week', 'ars_technica', 'upi', 'new_yorker', 'irish_times', 'iht', + 'discover_magazine', 'scientific_american', ] import re, imp, inspect, time diff --git a/src/calibre/web/fetch/simple.py b/src/calibre/web/fetch/simple.py index 05b3b9a87b..2fcaa96583 100644 --- a/src/calibre/web/fetch/simple.py +++ b/src/calibre/web/fetch/simple.py @@ -198,7 +198,6 @@ class RecursiveFetcher(object, LoggingInterface): except Exception, err: self.log_warning('Could not fetch stylesheet %s', iurl) self.log_debug('Error: %s', str(err), exc_info=True) - if hasattr(f, 'close'): f.close() continue stylepath = os.path.join(diskpath, 'style'+str(c)+'.css') with self.stylemap_lock: