diff --git a/resources/images/news/oldnewthing.png b/resources/images/news/oldnewthing.png new file mode 100644 index 0000000000..9aaf462598 Binary files /dev/null and b/resources/images/news/oldnewthing.png differ diff --git a/resources/recipes/oldnewthing.recipe b/resources/recipes/oldnewthing.recipe new file mode 100644 index 0000000000..fc9749d403 --- /dev/null +++ b/resources/recipes/oldnewthing.recipe @@ -0,0 +1,34 @@ + +__license__ = 'GPL v3' +__copyright__ = '2010, Darko Miletic ' +''' +blogs.msdn.com/oldnewthing +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class OldNewThing(BasicNewsRecipe): + title = 'The Old New Thing' + __author__ = 'Darko Miletic' + description = 'Famous blog by Windows guru Raymond Chen' + oldest_article = 15 + max_articles_per_feed = 100 + language = 'en' + encoding = 'utf-8' + no_stylesheets = True + use_embedded_content = False + publication_type = 'blog' + extra_css = ' body{font-family: Verdana,Arial,Helvetica,sans-serif} .code{font-family: "Lucida Console",monospace} ' + + conversion_options = { + 'comment' : description + , 'tags' : 'blog, windows, microsoft, programming' + , 'publisher': 'Raymond Chen' + , 'language' : language + } + + remove_attributes = ['width','height'] + keep_only_tags = [dict(attrs={'class':['postsub','comment']})] + + feeds = [(u'Posts', u'http://blogs.msdn.com/oldnewthing/rss.xml')] +