From 1b8ab87107b22b716b4ee7d399917fa2346beb16 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 Dec 2008 17:32:39 -0800 Subject: [PATCH] Recipes for Endgadget and Fudzilla (thanks to Darko Miletic). Also Fix #1448 (Cover page processing produces error) --- src/calibre/ebooks/lrf/html/convert_from.py | 2 +- src/calibre/ebooks/metadata/meta.py | 2 +- src/calibre/web/feeds/recipes/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/lrf/html/convert_from.py b/src/calibre/ebooks/lrf/html/convert_from.py index 9863f28bda..2ed8d29468 100644 --- a/src/calibre/ebooks/lrf/html/convert_from.py +++ b/src/calibre/ebooks/lrf/html/convert_from.py @@ -1853,7 +1853,7 @@ def process_file(path, options, logger=None): scaled else im cf = PersistentTemporaryFile(prefix=__appname__+"_", suffix=".jpg") cf.close() - cim.save(cf.name) + cim.convert('RGB').save(cf.name) options.cover = cf.name tim = im.resize((int(0.75*th), th), PILImage.ANTIALIAS).convert('RGB') diff --git a/src/calibre/ebooks/metadata/meta.py b/src/calibre/ebooks/metadata/meta.py index 3c5f07d271..c6d3cf479a 100644 --- a/src/calibre/ebooks/metadata/meta.py +++ b/src/calibre/ebooks/metadata/meta.py @@ -14,7 +14,7 @@ from calibre.ebooks.metadata import MetaInformation _METADATA_PRIORITIES = [ 'html', 'htm', 'xhtml', 'xhtm', 'rtf', 'fb2', 'pdf', 'prc', 'odt', - 'epub', 'lit', 'lrx', 'lrf', 'mobi', + 'epub', 'lit', 'lrx', 'lrf', 'mobi', 'rb', 'imp' ] diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 7006ff030d..5634678e7a 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -19,7 +19,7 @@ recipe_modules = [ 'clarin', 'financial_times', 'heise', 'le_monde', 'harpers', 'science_aas', 'science_news', 'the_nation', 'lrb', 'harpers_full', 'liberation', 'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes', - 'time', + 'time', 'endgadget', 'fudzilla', ] import re, imp, inspect, time, os