Kleine Änderungen

This commit is contained in:
Akamaru 2017-09-21 00:13:40 +02:00
parent f95fc5df52
commit 5c4ba10436
2 changed files with 3 additions and 2 deletions

4
bot.py
View File

@ -80,7 +80,7 @@ def start(bot, update):
if not utils.can_use_bot(update): if not utils.can_use_bot(update):
return return
update.message.reply_text( update.message.reply_text(
text='<b>Willkommen beim RSS-Bot!</b>\nSende /help, um zu starten.', text='<b>Willkommen bei RikoBot!</b>\nSende /help, um zu starten.',
parse_mode=telegram.ParseMode.HTML parse_mode=telegram.ParseMode.HTML
) )
@ -277,7 +277,7 @@ def check_feed(bot, key):
content = utils.get_content(entry.summary) content = utils.get_content(entry.summary)
else: else:
content = '' content = ''
text = '<b>{post_title}</b>\n<i>{feed_title}</i>\n{content}'.format( text = '<b>[</b>#RSS<b>] {post_title}</b>\n<i>{feed_title}</i>\n{content}'.format(
post_title=post_title, post_title=post_title,
feed_title=feed_title, feed_title=feed_title,
content=content content=content

View File

@ -39,6 +39,7 @@ def remove_html_tags(html):
def clean_rss(content): def clean_rss(content):
"""Cleans content""" """Cleans content"""
content = content.replace('\n', ' ')
content = content.replace('[…]', '') content = content.replace('[…]', '')
content = content.replace('[bilder]', '') content = content.replace('[bilder]', '')
content = content.replace('[boerse]', '') content = content.replace('[boerse]', '')