From 7b64f8a3960cc8beb6169629b6b69302b7f094f5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Mar 2022 20:07:00 +0530 Subject: [PATCH] Update India Legal Magazine --- recipes/india_legal_magazine.recipe | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/recipes/india_legal_magazine.recipe b/recipes/india_legal_magazine.recipe index dd22f66a8f..6917bccaf6 100644 --- a/recipes/india_legal_magazine.recipe +++ b/recipes/india_legal_magazine.recipe @@ -14,12 +14,22 @@ class IndiaLegalLive(BasicNewsRecipe): no_stylesheets = True remove_attributes = ['style', 'height', 'width'] + masthead_url = 'https://d2r2ijn7njrktv.cloudfront.net/IL/uploads/2020/12/03181846/india-legal-live-logo-218x73-1.png' + + def get_cover_url(self): + soup = self.index_to_soup('https://www.indialegallive.com/') + for citem in soup.findAll('img', src=lambda s: s and s.endswith('shot.jpg')): + return citem['src'] + keep_only_tags = [ dict(name='h1'), classes( 'tdb_single_subtitle tdb_single_date tdb_single_featured_image tdb_single_content' ), ] + remove_tags = [ + dict(name='div', attrs={'style':'position:absolute;top:0;left:-9999px;'}), + ] feeds = [ ('Courts', 'https://www.indialegallive.com/constitutional-law-news/courts-news/rss'),