From 2dbc7058f2c559427f2d6eeb71f88ad3d1e786e5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 22 Nov 2010 12:06:50 -0700 Subject: [PATCH] Improve Revista Muy Intersante --- resources/recipes/revista_muy.recipe | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/recipes/revista_muy.recipe b/resources/recipes/revista_muy.recipe index e452a6f053..b101fe97ce 100644 --- a/resources/recipes/revista_muy.recipe +++ b/resources/recipes/revista_muy.recipe @@ -108,3 +108,10 @@ class RevistaMuyInteresante(BasicNewsRecipe): feeds.append((title, articles)) return feeds + def get_cover_url(self): + index = 'http://www.muyinteresante.es/revista' + soup = self.index_to_soup(index) + link_item = soup.find('img',attrs={'class':'img_portada'}) + if link_item: + cover_url = "http://www.muyinteresante.es"+link_item['src'] + return cover_url