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"]