From 17f3f48616a3981eadd314c952b9b83e2398d469 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 8 Oct 2010 09:53:15 -0500 Subject: [PATCH] Ehancement for WikiNews recipe: fetch cover from wikemedia --- resources/recipes/wikinews_en.recipe | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/recipes/wikinews_en.recipe b/resources/recipes/wikinews_en.recipe index cf83793702..538ab241c2 100644 --- a/resources/recipes/wikinews_en.recipe +++ b/resources/recipes/wikinews_en.recipe @@ -55,6 +55,9 @@ class WikiNews(BasicNewsRecipe): rest, sep, article_id = url.rpartition('/') return 'http://en.wikinews.org/w/index.php?title=' + article_id + '&printable=yes' + def get_cover_url(self): + return 'http://upload.wikimedia.org/wikipedia/commons/b/bd/Wikinews-logo-en.png' + def preprocess_html(self, soup): mtag = '' soup.head.insert(0,mtag)