mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05: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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user