mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-15 23:19:22 +01:00
b42b06fe79
When the feed has a specified encoding, we'll be dealing with unicode objects
in the response from feedparser.parse(). To avoid possible UnicodeErrors, we
need to encode() before handing the string off to other functions, so the
other functions are always dealing with bytestrings instead of bytestrings and
unicode objects. Mixing unicode and bytestrings will cause implicit
conversions of the unicode objects, which will most likely use the wrong
encoding.
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
(cherry picked from commit
|
||
---|---|---|
.. | ||
local | ||
__init__.py | ||
config.py | ||
plugin.py | ||
README.txt | ||
test.py |
This plugin allows you to poll and periodically announce new items from RSS feeds. In order to use this plugin you must have the following modules installed: - feedparser: http://feedparser.org/ Basic usage ----------- Adding a feed @rss add supybot http://sourceforge.net/export/rss2_projfiles.php?group_id=58965 Add announcements for a feed @rss announce add supybot Stop announcements for a feed @rss announce remove supybot