mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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'
|
__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/
|
www.codinghorror.com/blog/
|
||||||
'''
|
'''
|
||||||
@ -15,22 +13,20 @@ class CodingHorror(BasicNewsRecipe):
|
|||||||
category = 'blog, programming'
|
category = 'blog, programming'
|
||||||
publisher = 'Jeff Atwood'
|
publisher = 'Jeff Atwood'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
|
|
||||||
author = 'Jeff Atwood'
|
|
||||||
oldest_article = 30
|
oldest_article = 30
|
||||||
max_articles_per_feed = 100
|
max_articles_per_feed = 100
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = True
|
use_embedded_content = True
|
||||||
encoding = 'cp1252'
|
encoding = 'utf8'
|
||||||
|
auto_cleanup = True
|
||||||
|
|
||||||
html2lrf_options = [
|
conversion_options = {
|
||||||
'--comment' , description
|
'comment' : description
|
||||||
, '--category' , category
|
, 'tags' : category
|
||||||
, '--publisher', publisher
|
, 'publisher': publisher
|
||||||
, '--author' , author
|
, 'language' : language
|
||||||
]
|
, 'authors' : publisher
|
||||||
|
}
|
||||||
html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nauthors="' + author + '"'
|
|
||||||
|
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
dict(name=['object','link'])
|
dict(name=['object','link'])
|
||||||
@ -38,4 +34,3 @@ class CodingHorror(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )]
|
feeds = [(u'Articles', u'http://feeds2.feedburner.com/codinghorror' )]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user