Update Indian Express

This commit is contained in:
Kovid Goyal 2022-08-11 18:05:44 +05:30
parent b0c95d4e61
commit 917f9396f4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -24,6 +24,7 @@ class IndianExpress(BasicNewsRecipe):
extra_css = ''' extra_css = '''
#storycenterbyline {font-size:small;} #storycenterbyline {font-size:small;}
#img-cap {font-size:small;} #img-cap {font-size:small;}
blockquote{text-align:center; color:#404040;}
''' '''
resolve_internal_links = True resolve_internal_links = True
remove_empty_feeds = True remove_empty_feeds = True
@ -31,6 +32,7 @@ class IndianExpress(BasicNewsRecipe):
keep_only_tags = [classes('heading-part full-details')] keep_only_tags = [classes('heading-part full-details')]
remove_tags = [ remove_tags = [
dict(name='div', attrs={'id': 'ie_story_comments'}), dict(name='div', attrs={'id': 'ie_story_comments'}),
dict(name='div', attrs={'class': lambda x: x and 'related-widget' in x}),
dict( dict(
name='img', name='img',
attrs={ attrs={
@ -62,7 +64,7 @@ class IndianExpress(BasicNewsRecipe):
classes( classes(
'share-social appstext ie-int-campign-ad ie-breadcrumb custom_read_button unitimg copyright' 'share-social appstext ie-int-campign-ad ie-breadcrumb custom_read_button unitimg copyright'
' storytags pdsc-related-modify news-guard premium-story append_social_share' ' storytags pdsc-related-modify news-guard premium-story append_social_share'
' digital-subscriber-only h-text-widget ie-premium' ' digital-subscriber-only h-text-widget ie-premium ie-first-publish adboxtop adsizes'
) )
] ]