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