diff --git a/resources/images/dialog_question.svg b/resources/images/dialog_question.svg new file mode 100644 index 0000000000..be41385b7d --- /dev/null +++ b/resources/images/dialog_question.svg @@ -0,0 +1,269 @@ + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources/images/news/evz.ro.png b/resources/images/news/evz.ro.png new file mode 100644 index 0000000000..c0549185bc Binary files /dev/null and b/resources/images/news/evz.ro.png differ diff --git a/resources/recipes/evz.ro.recipe b/resources/recipes/evz.ro.recipe new file mode 100644 index 0000000000..bce151d1fc --- /dev/null +++ b/resources/recipes/evz.ro.recipe @@ -0,0 +1,52 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, Darko Miletic ' +''' +evz.ro +''' + +import re +from calibre.web.feeds.news import BasicNewsRecipe + +class EVZ_Ro(BasicNewsRecipe): + title = 'evz.ro' + __author__ = 'Darko Miletic' + description = 'News from Romania' + publisher = 'evz.ro' + category = 'news, politics, Romania' + oldest_article = 2 + max_articles_per_feed = 200 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'ro' + masthead_url = 'http://www.evz.ro/fileadmin/images/logo.gif' + extra_css = ' body{font-family: Georgia,Arial,Helvetica,sans-serif } .firstP{font-size: 1.125em} .author,.articleInfo{font-size: small} ' + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + preprocess_regexps = [ + (re.compile(r'.*?', re.DOTALL|re.IGNORECASE),lambda match: '<head><title>') + ,(re.compile(r'.*?', re.DOTALL|re.IGNORECASE),lambda match: '') + ] + + remove_tags = [ + dict(name=['form','embed','iframe','object','base','link','script','noscript']) + ,dict(attrs={'class':['section','statsInfo','email il']}) + ,dict(attrs={'id' :'gallery'}) + ] + + remove_tags_after = dict(attrs={'class':'section'}) + keep_only_tags = [dict(attrs={'class':'single'})] + remove_attributes = ['height','width'] + + feeds = [(u'Articles', u'http://www.evz.ro/rss.xml')] + + def preprocess_html(self, soup): + for item in soup.findAll(style=True): + del item['style'] + return soup