From 82d1efeca1690bf26f149561889543b994c61746 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Jan 2012 17:44:34 +0530 Subject: [PATCH] Fix #916740 (Updated recipe for Blic) --- recipes/blic.recipe | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/recipes/blic.recipe b/recipes/blic.recipe index 384518ec13..e184c1a9b0 100644 --- a/recipes/blic.recipe +++ b/recipes/blic.recipe @@ -1,6 +1,6 @@ __license__ = 'GPL v3' -__copyright__ = '2008-2011, Darko Miletic ' +__copyright__ = '2008-2012, Darko Miletic ' ''' blic.rs ''' @@ -73,7 +73,10 @@ class Blic(BasicNewsRecipe): def print_version(self, url): return url + '/print' - def preprocess_html(self, soup): - for item in soup.findAll(style=True): - del item['style'] - return soup + def get_cover_url(self): + soup = self.index_to_soup('http://www.blic.rs/') + alink = soup.find('a', attrs={'id':'blic_naslovna_print'}) + if alink: + return 'http://www.blic.rs' + alink['href'] + return None + \ No newline at end of file