From cb2a8751259e16f1c53a6ac39af37a784b21b694 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 26 Jan 2009 16:50:43 -0800 Subject: [PATCH] New recipe for the Teleread Blog by Kovid Goyal --- src/calibre/gui2/images/news/teleread.png | Bin 0 -> 287 bytes src/calibre/web/feeds/recipes/__init__.py | 2 +- .../web/feeds/recipes/recipe_teleread.py | 24 ++++++++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/calibre/gui2/images/news/teleread.png create mode 100644 src/calibre/web/feeds/recipes/recipe_teleread.py diff --git a/src/calibre/gui2/images/news/teleread.png b/src/calibre/gui2/images/news/teleread.png new file mode 100644 index 0000000000000000000000000000000000000000..7e654214e377f3be2aeca8a3961beeaf8856dc20 GIT binary patch literal 287 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b zK-vS0-A-oPfdtD69Mgd`SU*F|v9*UmvYsxEAr_~TYd$`@Q_p5{;I#Hh2b~0^sHY1| z8(60wY2qzqF;!sIM2r1Q22c&Jdhad*YGCkm^>bP0l+XkK-bqvJ literal 0 HcmV?d00001 diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 6ed58b4282..d087004dbe 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -24,7 +24,7 @@ recipe_modules = ['recipe_' + r for r in ( 'joelonsoftware', 'telepolis', 'common_dreams', 'nin', 'tomshardware_de', 'pagina12', 'infobae', 'ambito', 'elargentino', 'sueddeutsche', 'the_age', 'laprensa', 'amspec', 'freakonomics', 'criticadigital', 'elcronista', - 'shacknews', + 'shacknews', 'teleread', )] import re, imp, inspect, time, os diff --git a/src/calibre/web/feeds/recipes/recipe_teleread.py b/src/calibre/web/feeds/recipes/recipe_teleread.py new file mode 100644 index 0000000000..06d66720fd --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_teleread.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +__license__ = 'GPL v3' +__copyright__ = '2009, Kovid Goyal kovid@kovidgoyal.net' +__docformat__ = 'restructuredtext en' + +''' +teleread.org +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Teleread(BasicNewsRecipe): + + title = 'Teleread Blog' + description = 'News & views on e-books, libraries, publishing and related topics' + __author__ = 'Kovid Goyal' + + feeds = [('Entries', 'http://www.teleread.org/feed/')] + + remove_tags = [dict(attrs={'class':['sociable', 'comments', + 'wlWriterSmartContent', 'feedflare']})] + + def get_article_url(self, article): + return article.get('feedburner_origlink', article.get('link', article.get('guid'))) \ No newline at end of file