From 8e6813fd7cba89424463edee5b484c621693b9a3 Mon Sep 17 00:00:00 2001 From: Meekdai Date: Fri, 31 May 2024 14:30:20 +0800 Subject: [PATCH] Update Gmeek.py --- Gmeek.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Gmeek.py b/Gmeek.py index 9bd97b6..3a8dc43 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -160,10 +160,7 @@ class GMEEK(): ) if 'Gmeek-html' in post_body: - print("==========") - print(post_body) - print("==========") - post_body = html.unescape(re.sub(r'Gmeek-html(.*?)',r'\1',post_body,flags=re.DOTALL)) + post_body = re.sub(r'Gmeek-html(.*?)', lambda match: html.unescape(match.group(1)), post_body, flags=re.DOTALL) postBase["postTitle"]=issue["postTitle"] postBase["postUrl"]=self.blogBase["homeUrl"]+"/"+issue["postUrl"]