From 662a3d67449bbe4bbc012db7ea2866e394761474 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Mon, 2 Dec 2019 13:23:26 +0300 Subject: [PATCH] cleanup nerfnow tags --- feeds/modules/nerfnow.py | 1 + 1 file changed, 1 insertion(+) diff --git a/feeds/modules/nerfnow.py b/feeds/modules/nerfnow.py index bfa8f65..aca1aad 100644 --- a/feeds/modules/nerfnow.py +++ b/feeds/modules/nerfnow.py @@ -27,6 +27,7 @@ class NerfNowFeedModuleConfig(FeedModuleConfig): data = e['content'][0]['value'].replace('\n', '') url = IMAGE_RE.search(data).group(1).replace('/large', '') comment = CAPTION_NEWLINE_RE.sub('\n', CAPTION_RE.search(data).group(1)) + comment = comment.replace('
', '') caption = '{}\n\n{}\n\n{}'.format(e['title'], comment, e['feedburner_origlink']) bot.send_photo(chat_id, url, caption, parse_mode='html') yield e['updated']