From f3bfb06489ee81a09fadddb1e88060280e8295dd Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:58:08 +0530 Subject: [PATCH] ... --- recipes/livemint.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/livemint.recipe b/recipes/livemint.recipe index fd313ddb9d..9010d0f2b8 100644 --- a/recipes/livemint.recipe +++ b/recipes/livemint.recipe @@ -129,7 +129,7 @@ class LiveMint(BasicNewsRecipe): def preprocess_raw_html(self, raw, *a): # remove empty p tags - raw = re.sub(r'(
\s*)(<[^\/])', '\g<2>', re.sub(r'(
\s* \s*<\/p>)|(
\s*<\/p>)', '', raw)) + raw = re.sub(r'(
\s* \s*<\/p>)|(
\s*<\/p>)', '', raw) if '' in raw: m = re.search(r'type="application/ld\+json">[^<]+?"@type": "NewsArticle"', raw) raw1 = raw[m.start():]