cleanup nerfnow tags
This commit is contained in:
		@@ -27,6 +27,7 @@ class NerfNowFeedModuleConfig(FeedModuleConfig):
 | 
				
			|||||||
                data = e['content'][0]['value'].replace('\n', '')
 | 
					                data = e['content'][0]['value'].replace('\n', '')
 | 
				
			||||||
                url = IMAGE_RE.search(data).group(1).replace('/large', '')
 | 
					                url = IMAGE_RE.search(data).group(1).replace('/large', '')
 | 
				
			||||||
                comment = CAPTION_NEWLINE_RE.sub('\n', CAPTION_RE.search(data).group(1))
 | 
					                comment = CAPTION_NEWLINE_RE.sub('\n', CAPTION_RE.search(data).group(1))
 | 
				
			||||||
 | 
					                comment = comment.replace('<br />', '')
 | 
				
			||||||
                caption = '<b>{}</b>\n\n{}\n\n{}'.format(e['title'], comment, e['feedburner_origlink'])
 | 
					                caption = '<b>{}</b>\n\n{}\n\n{}'.format(e['title'], comment, e['feedburner_origlink'])
 | 
				
			||||||
                bot.send_photo(chat_id, url, caption, parse_mode='html')
 | 
					                bot.send_photo(chat_id, url, caption, parse_mode='html')
 | 
				
			||||||
                yield e['updated']
 | 
					                yield e['updated']
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user