mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1045046 (Houston Chronicle news fetch failing)
This commit is contained in:
parent
4fcbf630e5
commit
75f1271681
@ -7,18 +7,19 @@ class HoustonChronicle(BasicNewsRecipe):
|
|||||||
|
|
||||||
title = u'The Houston Chronicle'
|
title = u'The Houston Chronicle'
|
||||||
description = 'News from Houston, Texas'
|
description = 'News from Houston, Texas'
|
||||||
__author__ = 'Kovid Goyal'
|
__author__ = 'Kovid Goyal'
|
||||||
language = 'en'
|
language = 'en'
|
||||||
timefmt = ' [%a, %d %b, %Y]'
|
timefmt = ' [%a, %d %b, %Y]'
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
remove_attributes = ['style']
|
remove_attributes = ['style']
|
||||||
|
auto_cleanup = True
|
||||||
|
|
||||||
oldest_article = 2.0
|
oldest_article = 2.0
|
||||||
|
|
||||||
keep_only_tags = {'class':lambda x: x and ('hst-articletitle' in x or
|
#keep_only_tags = {'class':lambda x: x and ('hst-articletitle' in x or
|
||||||
'hst-articletext' in x or 'hst-galleryitem' in x)}
|
#'hst-articletext' in x or 'hst-galleryitem' in x)}
|
||||||
remove_attributes = ['xmlns']
|
#remove_attributes = ['xmlns']
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('News', "http://www.chron.com/rss/feed/News-270.php"),
|
('News', "http://www.chron.com/rss/feed/News-270.php"),
|
||||||
@ -37,3 +38,4 @@ class HoustonChronicle(BasicNewsRecipe):
|
|||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user