From 6476d29ab3fd86183bea4cb8ed857ec32ea5bf7d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 2 May 2022 14:32:06 +0530 Subject: [PATCH] ... --- recipes/outlook_india.recipe | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/recipes/outlook_india.recipe b/recipes/outlook_india.recipe index 1d361bb8d9..79b3acee8f 100644 --- a/recipes/outlook_india.recipe +++ b/recipes/outlook_india.recipe @@ -28,12 +28,13 @@ class outlook(BasicNewsRecipe): a = h3.find('a', href=lambda x: x) url = a['href'] title = self.tag_to_string(a) + desc = '' + p = h3.find_next_sibling('p') + if p: + desc = self.tag_to_string(desc) self.log('\t\tFound article:', title) self.log('\t\t\t', url) - ans.append({ - 'title': title, - 'url': url, - }) + ans.append({'title': title, 'url': url, 'description': desc}) return [('Articles', ans)] def preprocess_raw_html(self, raw, *a):