mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-12-02 08:07:26 +01:00
Fix the encoding problem in RSS.info for good.
This commit is contained in:
parent
17f53446fd
commit
7e4aa50ffc
@ -416,11 +416,11 @@ class RSS(callbacks.Plugin):
|
|||||||
when = 'time unavailable'
|
when = 'time unavailable'
|
||||||
title = conv(info.get('title', 'unavailable'))
|
title = conv(info.get('title', 'unavailable'))
|
||||||
desc = conv(info.get('description', 'unavailable'))
|
desc = conv(info.get('description', 'unavailable'))
|
||||||
|
link = conv(info.get('link', 'unavailable'))
|
||||||
# The rest of the entries are all available in the channel key
|
# The rest of the entries are all available in the channel key
|
||||||
response = format('Title: %s; URL: %u; '
|
response = format('Title: %s; URL: %u; '
|
||||||
'Description: %s; Last updated: %s.',
|
'Description: %s; Last updated: %s.',
|
||||||
title, info.get('link', 'unavailable').strip(),
|
title, link, desc, when)
|
||||||
desc, when)
|
|
||||||
irc.reply(utils.str.normalizeWhitespace(response))
|
irc.reply(utils.str.normalizeWhitespace(response))
|
||||||
info = wrap(info, [first('url', 'feedName')])
|
info = wrap(info, [first('url', 'feedName')])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user