mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update the Independent
This commit is contained in:
parent
73b464f835
commit
88605719fc
@ -41,6 +41,7 @@ class TheIndependentNew(BasicNewsRecipe):
|
|||||||
publication_type = 'newspaper'
|
publication_type = 'newspaper'
|
||||||
masthead_url = 'http://www.independent.co.uk/independent.co.uk/editorial/logo/independent_Masthead.png'
|
masthead_url = 'http://www.independent.co.uk/independent.co.uk/editorial/logo/independent_Masthead.png'
|
||||||
encoding = 'utf-8'
|
encoding = 'utf-8'
|
||||||
|
compress_news_images = True
|
||||||
remove_tags =[
|
remove_tags =[
|
||||||
dict(attrs={'id' : ['RelatedArtTag','renderBiography']}),
|
dict(attrs={'id' : ['RelatedArtTag','renderBiography']}),
|
||||||
dict(attrs={'class' : ['autoplay','openBiogPopup']}),
|
dict(attrs={'class' : ['autoplay','openBiogPopup']}),
|
||||||
@ -343,7 +344,7 @@ class TheIndependentNew(BasicNewsRecipe):
|
|||||||
if 'class' in subtitle_div:
|
if 'class' in subtitle_div:
|
||||||
clazz = subtitle_div['class'] + ' '
|
clazz = subtitle_div['class'] + ' '
|
||||||
clazz = clazz + 'subtitle'
|
clazz = clazz + 'subtitle'
|
||||||
subtitle_div['class'] = clazz
|
subtitle_div['class'] = clazz
|
||||||
|
|
||||||
#find broken images and remove captions
|
#find broken images and remove captions
|
||||||
items_to_extract = []
|
items_to_extract = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user