diff --git a/resources/recipes/vijesti.recipe b/resources/recipes/vijesti.recipe index c901755b78..d650bdec06 100644 --- a/resources/recipes/vijesti.recipe +++ b/resources/recipes/vijesti.recipe @@ -1,6 +1,6 @@ __license__ = 'GPL v3' -__copyright__ = '2009-2010, Darko Miletic ' +__copyright__ = '2009-2011, Darko Miletic ' ''' vijesti.me @@ -18,12 +18,16 @@ class Vijesti(BasicNewsRecipe): oldest_article = 2 max_articles_per_feed = 150 no_stylesheets = True - encoding = 'cp1250' + encoding = 'utf8' use_embedded_content = False language = 'sr' publication_type = 'newspaper' - masthead_url = 'http://www.vijesti.me/img/logo.gif' - extra_css = '@font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)} @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} body{font-family: serif1, serif} .article_description{font-family: sans1, sans-serif}' + extra_css = """ + @font-face {font-family: "serif1";src:url(res:///opt/sony/ebook/FONT/tt0011m_.ttf)} + @font-face {font-family: "sans1";src:url(res:///opt/sony/ebook/FONT/tt0003m_.ttf)} + body{font-family: Georgia,"Times New Roman",Times,serif1,serif} + .articledescription,.article,.chapter{font-family: sans1, sans-serif} + """ conversion_options = { 'comment' : description @@ -34,11 +38,11 @@ class Vijesti(BasicNewsRecipe): preprocess_regexps = [(re.compile(u'\u0110'), lambda match: u'\u00D0')] - keep_only_tags = [dict(name='div', attrs={'id':'mainnews'})] + keep_only_tags = [dict(name='div', attrs={'id':['article_intro_text','article_text']})] remove_tags = [dict(name=['object','link','embed','form'])] - feeds = [(u'Sve vijesti', u'http://www.vijesti.me/rss.php' )] + feeds = [(u'Sve vijesti', u'http://www.vijesti.me/rss/' )] def preprocess_html(self, soup): return self.adeify_images(soup)