mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update American Thinker
Fixes #1288371 [American Thinker news](https://bugs.launchpad.net/calibre/+bug/1288371)
This commit is contained in:
parent
f19f998b25
commit
fea4b9cbac
@ -11,7 +11,7 @@ class AmericanThinker(BasicNewsRecipe):
|
|||||||
__author__ = 'Walt Anthony'
|
__author__ = 'Walt Anthony'
|
||||||
publisher = 'Thomas Lifson'
|
publisher = 'Thomas Lifson'
|
||||||
category = 'news, politics, USA'
|
category = 'news, politics, USA'
|
||||||
oldest_article = 7 #days
|
oldest_article = 7 # days
|
||||||
max_articles_per_feed = 50
|
max_articles_per_feed = 50
|
||||||
summary_length = 150
|
summary_length = 150
|
||||||
language = 'en'
|
language = 'en'
|
||||||
@ -19,7 +19,6 @@ class AmericanThinker(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
|
|
||||||
|
|
||||||
conversion_options = {
|
conversion_options = {
|
||||||
'comment' : description
|
'comment' : description
|
||||||
, 'tags' : category
|
, 'tags' : category
|
||||||
@ -27,17 +26,12 @@ class AmericanThinker(BasicNewsRecipe):
|
|||||||
, 'language' : language
|
, 'language' : language
|
||||||
, 'linearize_tables' : True
|
, 'linearize_tables' : True
|
||||||
}
|
}
|
||||||
|
auto_claenup = True
|
||||||
remove_tags = [
|
|
||||||
dict(name=['table', 'iframe', 'embed', 'object'])
|
|
||||||
]
|
|
||||||
|
|
||||||
remove_tags_after = dict(name='div', attrs={'class':'article_body'})
|
|
||||||
|
|
||||||
|
|
||||||
feeds = [(u'http://feeds.feedburner.com/americanthinker'),
|
feeds = [(u'http://feeds.feedburner.com/americanthinker'),
|
||||||
(u'http://feeds.feedburner.com/AmericanThinkerBlog')
|
(u'http://feeds.feedburner.com/AmericanThinkerBlog')
|
||||||
]
|
]
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
|
return 'http://www.americanthinker.com/assets/3rd_party/printpage/?url=' + url
|
||||||
return 'http://www.americanthinker.com/printpage/?url=' + url
|
return 'http://www.americanthinker.com/printpage/?url=' + url
|
||||||
|
Loading…
x
Reference in New Issue
Block a user