From 51df4f1d91da69f7097465e9c0b7ba66a15eabe7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Aug 2012 01:03:41 +0530 Subject: [PATCH] Fix #1042900 (Updated recipe for Coding Horror blog) --- recipes/coding_horror.recipe | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/recipes/coding_horror.recipe b/recipes/coding_horror.recipe index 417c4c774a..d63d5a2520 100644 --- a/recipes/coding_horror.recipe +++ b/recipes/coding_horror.recipe @@ -1,7 +1,5 @@ -#!/usr/bin/env python - __license__ = 'GPL v3' -__copyright__ = '2009, Darko Miletic ' +__copyright__ = '2009-2012, Darko Miletic ' ''' www.codinghorror.com/blog/ ''' @@ -14,28 +12,25 @@ class CodingHorror(BasicNewsRecipe): description = 'programming and human factors - Jeff Atwood' category = 'blog, programming' publisher = 'Jeff Atwood' - language = 'en' - - author = 'Jeff Atwood' + language = 'en' oldest_article = 30 max_articles_per_feed = 100 no_stylesheets = True use_embedded_content = True - encoding = 'cp1252' + encoding = 'utf8' + auto_cleanup = True - html2lrf_options = [ - '--comment' , description - , '--category' , category - , '--publisher', publisher - , '--author' , author - ] - - html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"' + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher': publisher + , 'language' : language + , 'authors' : publisher + } remove_tags = [ dict(name=['object','link']) ,dict(name='div',attrs={'class':'feedflare'}) ] - feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )] - + feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )] \ No newline at end of file