content wurde vor der Deklarierung verwendet
This commit is contained in:
parent
577eca8b76
commit
4e964c94e6
4
bot.py
4
bot.py
@ -282,8 +282,8 @@ def check_rss(bot, job):
|
|||||||
link = v2.link
|
link = v2.link
|
||||||
link_name = urlparse(link).netloc
|
link_name = urlparse(link).netloc
|
||||||
if 'summary' in v2:
|
if 'summary' in v2:
|
||||||
content = cleanRSS(content)
|
content = cleanRSS(v2.summary)
|
||||||
content = remove_tags(v2.summary).lstrip()
|
content = remove_tags(content).lstrip()
|
||||||
if len(content) > 250:
|
if len(content) > 250:
|
||||||
content = content[0:250] + '...'
|
content = content[0:250] + '...'
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user