mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
plugins/RSS: Fix info so it works again.
This commit is contained in:
parent
b375ea9792
commit
45c7f773ac
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user