mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-03 19:17:02 -05:00 
			
		
		
		
	Fix #1042900 (Updated recipe for Coding Horror blog)
This commit is contained in:
		
							parent
							
								
									c6d9524883
								
							
						
					
					
						commit
						51df4f1d91
					
				@ -1,7 +1,5 @@
 | 
			
		||||
#!/usr/bin/env  python
 | 
			
		||||
 | 
			
		||||
__license__   = 'GPL v3'
 | 
			
		||||
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
 | 
			
		||||
__copyright__ = '2009-2012, Darko Miletic <darko.miletic at gmail.com>'
 | 
			
		||||
'''
 | 
			
		||||
www.codinghorror.com/blog/
 | 
			
		||||
'''
 | 
			
		||||
@ -15,22 +13,20 @@ class CodingHorror(BasicNewsRecipe):
 | 
			
		||||
    category              = 'blog, programming'
 | 
			
		||||
    publisher             = 'Jeff Atwood'
 | 
			
		||||
    language              = 'en'
 | 
			
		||||
 | 
			
		||||
    author                = 'Jeff Atwood'
 | 
			
		||||
    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'])
 | 
			
		||||
@ -38,4 +34,3 @@ class CodingHorror(BasicNewsRecipe):
 | 
			
		||||
                  ]
 | 
			
		||||
 | 
			
		||||
    feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user