plugins/RSS: Fix info so it works again.

This commit is contained in:
James Vega 2005-07-19 21:32:54 +00:00
parent b375ea9792
commit 45c7f773ac
1 changed files with 4 additions and 4 deletions

View File

@ -395,13 +395,13 @@ class RSS(callbacks.Plugin):
except registry.NonExistentRegistryEntry: except registry.NonExistentRegistryEntry:
pass pass
feed = self.getFeed(url) feed = self.getFeed(url)
info = feed.get('channel') info = feed.get('feed')
if not info: if not info:
irc.error('I couldn\'t retrieve that RSS feed.') irc.error('I couldn\'t retrieve that RSS feed.')
return return
# check the 'modified' key, if it's there, convert it here first # check the 'modified_parsed' key, if it's there, convert it here first
if 'modified' in feed: if 'modified' in info:
seconds = time.mktime(feed['modified']) seconds = time.mktime(info['modified_parsed'])
now = time.mktime(time.gmtime()) now = time.mktime(time.gmtime())
when = utils.timeElapsed(now - seconds) + ' ago' when = utils.timeElapsed(now - seconds) + ' ago'
else: else: