From 05030a0926ea633d62703e865ab4ff609b09840b Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:24:02 +0200 Subject: [PATCH] main.py cards parse and <meta name="description" --- main.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 9ad367be6d..2b140533b4 100644 --- a/main.py +++ b/main.py @@ -64,12 +64,20 @@ def cards(pages, columns=1, style="cards", force_version=False): if match: title = match.groups()[0] else: - title = "" + match = re.search("<title>(.*)", content, re.MULTILINE) + if match: + title = match.groups()[0] + else: + title = "" match = re.search("