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'
|
||||
publisher = 'Thomas Lifson'
|
||||
category = 'news, politics, USA'
|
||||
oldest_article = 7 #days
|
||||
oldest_article = 7 # days
|
||||
max_articles_per_feed = 50
|
||||
summary_length = 150
|
||||
language = 'en'
|
||||
@ -19,7 +19,6 @@ class AmericanThinker(BasicNewsRecipe):
|
||||
remove_javascript = True
|
||||
no_stylesheets = True
|
||||
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : category
|
||||
@ -27,17 +26,12 @@ class AmericanThinker(BasicNewsRecipe):
|
||||
, 'language' : language
|
||||
, 'linearize_tables' : True
|
||||
}
|
||||
|
||||
remove_tags = [
|
||||
dict(name=['table', 'iframe', 'embed', 'object'])
|
||||
]
|
||||
|
||||
remove_tags_after = dict(name='div', attrs={'class':'article_body'})
|
||||
|
||||
auto_claenup = True
|
||||
|
||||
feeds = [(u'http://feeds.feedburner.com/americanthinker'),
|
||||
(u'http://feeds.feedburner.com/AmericanThinkerBlog')
|
||||
(u'http://feeds.feedburner.com/AmericanThinkerBlog')
|
||||
]
|
||||
|
||||
def print_version(self, url):
|
||||
return 'http://www.americanthinker.com/assets/3rd_party/printpage/?url=' + url
|
||||
return 'http://www.americanthinker.com/printpage/?url=' + url
|
||||
|
Loading…
x
Reference in New Issue
Block a user