diff --git a/recipes/geek_poke.recipe b/recipes/geek_poke.recipe index 8fa9e7ca29..7f5117b586 100644 --- a/recipes/geek_poke.recipe +++ b/recipes/geek_poke.recipe @@ -1,35 +1,71 @@ -#!/usr/bin/python - from calibre.web.feeds.news import BasicNewsRecipe import re +from calibre.utils.magick import Image class AdvancedUserRecipe1307556816(BasicNewsRecipe): title = u'Geek and Poke' __author__ = u'DrMerry' description = u'Geek and Poke Cartoons' + publisher = u'Oliver Widder' + author = u'Oliver Widder, DrMerry (calibre-code), calibre' oldest_article = 31 max_articles_per_feed = 100 language = u'en' simultaneous_downloads = 5 #delay = 1 - timefmt = ' [%A, %d %B, %Y]' + timefmt = ' [%a, %d %B, %Y]' summary_length = -1 no_stylesheets = True + category = 'News.IT, Cartoon, Humor, Geek' + use_embedded_content = False cover_url = 'http://geekandpoke.typepad.com/aboutcoders.jpeg' remove_javascript = True remove_empty_feeds = True publication_type = 'blog' + conversion_options = { + 'comments' : '' + ,'tags' : category + ,'language' : language + ,'publisher' : publisher + ,'author' : author + } - preprocess_regexps = [ (re.compile(r'(
|
( |\s)*
|]*>Tweet|]*>|)', re.DOTALL|re.IGNORECASE),lambda match: ''), + (re.compile(r'( |\s\s)+\s*', re.DOTALL|re.IGNORECASE),lambda match: ' '), + (re.compile(r'