From 45c7f773ac528eb44386264185eda408e4d56416 Mon Sep 17 00:00:00 2001 From: James Vega Date: Tue, 19 Jul 2005 21:32:54 +0000 Subject: [PATCH] plugins/RSS: Fix info so it works again. --- plugins/RSS/plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index b3e66a012..83fb9752c 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -395,13 +395,13 @@ class RSS(callbacks.Plugin): except registry.NonExistentRegistryEntry: pass feed = self.getFeed(url) - info = feed.get('channel') + info = feed.get('feed') if not info: irc.error('I couldn\'t retrieve that RSS feed.') return - # check the 'modified' key, if it's there, convert it here first - if 'modified' in feed: - seconds = time.mktime(feed['modified']) + # check the 'modified_parsed' key, if it's there, convert it here first + if 'modified' in info: + seconds = time.mktime(info['modified_parsed']) now = time.mktime(time.gmtime()) when = utils.timeElapsed(now - seconds) + ' ago' else: