mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #906143 (News Recipe Problem: Glasgow Herald)
This commit is contained in:
parent
ac67f9e3f6
commit
0ad159b8b1
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
class GlasgowHerald(BasicNewsRecipe):
|
class GlasgowHerald(BasicNewsRecipe):
|
||||||
@ -9,12 +8,16 @@ class GlasgowHerald(BasicNewsRecipe):
|
|||||||
language = 'en_GB'
|
language = 'en_GB'
|
||||||
|
|
||||||
__author__ = 'Kovid Goyal'
|
__author__ = 'Kovid Goyal'
|
||||||
|
use_embedded_content = False
|
||||||
|
|
||||||
keep_only_tags = [dict(attrs={'class':'article'})]
|
no_stylesheets = True
|
||||||
remove_tags = [
|
auto_cleanup = True
|
||||||
dict(id=['pic-nav']),
|
|
||||||
dict(attrs={'class':['comments-top']})
|
#keep_only_tags = [dict(attrs={'class':'article'})]
|
||||||
]
|
#remove_tags = [
|
||||||
|
#dict(id=['pic-nav']),
|
||||||
|
#dict(attrs={'class':['comments-top']})
|
||||||
|
#]
|
||||||
|
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
@ -25,5 +28,4 @@ class GlasgowHerald(BasicNewsRecipe):
|
|||||||
(u'Arts & Entertainment',
|
(u'Arts & Entertainment',
|
||||||
u'http://www.heraldscotland.com/cmlink/1.768',),
|
u'http://www.heraldscotland.com/cmlink/1.768',),
|
||||||
(u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')]
|
(u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user