Limnoria/plugins/RSS
James McCoy ff96b898f9 RSS._getConverter: Encode strings before handing them off to other functions
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>

Conflicts:

	plugins/RSS/plugin.py
2011-12-19 01:32:05 +01:00
..
local Merge branch 'master' of ssh://jemfinch@supybot.git.sourceforge.net/gitroot/supybot 2009-03-12 13:49:15 -05:00
locale RSS: Fix l10n-hu. 2011-11-06 21:25:10 +08:00
__init__.py Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
config.py RSS: internationalized announcementPrefix default value 2011-10-29 16:24:08 +02:00
messages.pot RSS: internationalized announcementPrefix default value 2011-10-29 16:24:08 +02:00
plugin.py RSS._getConverter: Encode strings before handing them off to other functions 2011-12-19 01:32:05 +01:00
README.txt Update RSS's README with the new announce syntax 2009-03-15 19:19:14 -04:00
test.py Make RSS.announce a nested plugin 2009-02-28 00:10:10 -05:00

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