From c3446a780b9b7084b0f190c55bed4729143b3cd0 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:09:09 +0530 Subject: [PATCH] ... --- recipes/hindufeeds.recipe | 2 +- recipes/indian_express.recipe | 1 + recipes/wsj.recipe | 4 ++-- recipes/wsj_free.recipe | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/recipes/hindufeeds.recipe b/recipes/hindufeeds.recipe index f724d5813d..9018824cc5 100644 --- a/recipes/hindufeeds.recipe +++ b/recipes/hindufeeds.recipe @@ -61,7 +61,7 @@ class TheHindufeeds(BasicNewsRecipe): def __init__(self, *args, **kwargs): BasicNewsRecipe.__init__(self, *args, **kwargs) if self.output_profile.short_name.startswith('kindle'): - self.title = 'The Hindu (Feeds)' + date.today().strftime('%b %d, %Y') + self.title = 'The Hindu (Feeds) ' + date.today().strftime('%b %d, %Y') def get_cover_url(self): diff --git a/recipes/indian_express.recipe b/recipes/indian_express.recipe index c80c8f0791..c26d7a47ad 100644 --- a/recipes/indian_express.recipe +++ b/recipes/indian_express.recipe @@ -23,6 +23,7 @@ class IndianExpress(BasicNewsRecipe): em{font-style:italic; color:#202020;} #sub-d{color:#202020; font-style:italic;} .ie-authorbox{font-size:small;} + img {display:block; margin:0 auto;} ''' resolve_internal_links = True diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index 65ac4f24e2..8373ac6b0d 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -51,7 +51,7 @@ class WSJ(BasicNewsRecipe): extra_css = ''' #big-top-caption { font-size:small; text-align:center; } [data-type:"tagline"] { font-style:italic; color:#202020; } - .auth { font-size:small; } + .auth, time { font-size:small; } .sub, em, i { color: #202020; } ''' @@ -63,7 +63,7 @@ class WSJ(BasicNewsRecipe): ] remove_tags = [ - dict(attrs={'data-type':'inset'}), + dict(attrs={'data-type':['inset', 'video']}), dict(attrs={'data-testid':'ad-container'}), dict(attrs={'data-spotim-app':'conversation'}), dict(name=['button', 'svg', 'old-script', 'video']), diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index 61448f1a61..3e5770ba83 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -51,7 +51,7 @@ class WSJ(BasicNewsRecipe): extra_css = ''' #big-top-caption { font-size:small; text-align:center; } [data-type:"tagline"] { font-style:italic; color:#202020; } - .auth { font-size:small; } + .auth, time { font-size:small; } .sub, em, i { color: #202020; } ''' @@ -63,7 +63,7 @@ class WSJ(BasicNewsRecipe): ] remove_tags = [ - dict(attrs={'data-type':'inset'}), + dict(attrs={'data-type':['inset', 'video']}), dict(attrs={'data-testid':'ad-container'}), dict(attrs={'data-spotim-app':'conversation'}), dict(name=['button', 'svg', 'old-script', 'video']),