mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix New York Time Sports Beat
This commit is contained in:
parent
e9ff43ab78
commit
cc81908994
@ -29,9 +29,11 @@ class NYTimesSports(BasicNewsRecipe):
|
|||||||
category = 'Sports'
|
category = 'Sports'
|
||||||
oldest_article = 3
|
oldest_article = 3
|
||||||
max_articles_per_feed = 25
|
max_articles_per_feed = 25
|
||||||
|
use_embedded_content = False
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
language = 'en'
|
language = 'en'
|
||||||
#cover_url ='http://bit.ly/h8F4DO'
|
auto_cleanup = True
|
||||||
|
auto_cleanup_keep = '//div[@class="articleSpanImage"]'
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'The Fifth Down', u'http://fifthdown.blogs.nytimes.com/feed/'),
|
(u'The Fifth Down', u'http://fifthdown.blogs.nytimes.com/feed/'),
|
||||||
(u'Off The Dribble', u'http://offthedribble.blogs.nytimes.com/feed/'),
|
(u'Off The Dribble', u'http://offthedribble.blogs.nytimes.com/feed/'),
|
||||||
@ -43,10 +45,6 @@ class NYTimesSports(BasicNewsRecipe):
|
|||||||
(u'Formula One', u'http://formulaone.blogs.nytimes.com/feed/'),
|
(u'Formula One', u'http://formulaone.blogs.nytimes.com/feed/'),
|
||||||
(u'On Par', u'http://onpar.blogs.nytimes.com/feed/'),
|
(u'On Par', u'http://onpar.blogs.nytimes.com/feed/'),
|
||||||
]
|
]
|
||||||
keep_only_tags = [dict(name='div', attrs={'id':'header'}),
|
|
||||||
dict(name='h1'),
|
|
||||||
dict(name='h2'),
|
|
||||||
dict(name='div', attrs={'class':'entry-content'})]
|
|
||||||
extra_css = '''
|
extra_css = '''
|
||||||
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
|
||||||
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
|
h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user