From 293a50af985d3894d123ef9573df06124406c648 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jan 2011 11:45:24 -0700 Subject: [PATCH 1/2] Wichita Eagle by Jason Cameron. Fixes #405 (New news feed) --- resources/recipes/wichita_eagle.recipe | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 resources/recipes/wichita_eagle.recipe diff --git a/resources/recipes/wichita_eagle.recipe b/resources/recipes/wichita_eagle.recipe new file mode 100644 index 0000000000..9e0314ca0e --- /dev/null +++ b/resources/recipes/wichita_eagle.recipe @@ -0,0 +1,29 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1294938721(BasicNewsRecipe): + title = u'Wichita Eagle' + language = 'en' + __author__ = 'Jason Cameron' + description = 'Daily news from the Wichita Eagle' + oldest_article = 1 + max_articles_per_feed = 30 + keep_only_tags = [dict(name='div', attrs={'id':'wide'})] + feeds = [ + (u'Local News', + u'http://www.kansas.com/news/local/index.rss'), + (u'National News', + u'http://www.kansas.com/news/nation-world/index.rss'), + (u'Sports', + u'http://www.kansas.com/sports/index.rss'), + (u'Opinion', + u'http://www.kansas.com/opinion/index.rss'), + (u'Life', + u'http://www.kansas.com/living/index.rss'), + (u'Entertainment', + u'http://www.kansas.com/entertainment/index.rss') + ] + + def print_version(self, url): + urlparts = url.split('/') + newadd = urlparts[5]+'/v-print' + return url.replace(url, newadd.join(url.split(urlparts[5]))) From 1a9762aed9d85fd93ed79b1102b46a43649dd551 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 13 Jan 2011 12:07:31 -0700 Subject: [PATCH 2/2] ... --- src/calibre/gui2/dialogs/drm_error.ui | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/dialogs/drm_error.ui b/src/calibre/gui2/dialogs/drm_error.ui index 842807c9bc..ff28ef5a48 100644 --- a/src/calibre/gui2/dialogs/drm_error.ui +++ b/src/calibre/gui2/dialogs/drm_error.ui @@ -13,6 +13,10 @@ This book is DRMed + + + :/images/document-encrypt.png:/images/document-encrypt.png +