mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
RSS: Fix stupid bugs.
This commit is contained in:
parent
a5c928b364
commit
f35ece8147
@ -42,6 +42,7 @@ import supybot.conf as conf
|
|||||||
import supybot.utils as utils
|
import supybot.utils as utils
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from supybot.commands import *
|
from supybot.commands import *
|
||||||
|
import supybot.ircmsgs as ircmsgs
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
import supybot.registry as registry
|
import supybot.registry as registry
|
||||||
import supybot.callbacks as callbacks
|
import supybot.callbacks as callbacks
|
||||||
@ -269,7 +270,7 @@ class RSS(callbacks.Plugin):
|
|||||||
|
|
||||||
def announce_entry(self, irc, channel, feed, entry):
|
def announce_entry(self, irc, channel, feed, entry):
|
||||||
if self.should_send_entry(channel, entry):
|
if self.should_send_entry(channel, entry):
|
||||||
s = format_entry(channel, feed, entry, True)
|
s = self.format_entry(channel, feed, entry, True)
|
||||||
irc.sendMsg(ircmsgs.privmsg(channel, s))
|
irc.sendMsg(ircmsgs.privmsg(channel, s))
|
||||||
|
|
||||||
|
|
||||||
@ -395,6 +396,8 @@ class RSS(callbacks.Plugin):
|
|||||||
except registry.NonExistentRegistryEntry:
|
except registry.NonExistentRegistryEntry:
|
||||||
pass
|
pass
|
||||||
feed = self.get_feed(url)
|
feed = self.get_feed(url)
|
||||||
|
if not feed:
|
||||||
|
feed = Feed(url, url)
|
||||||
self.update_feed_if_needed(feed)
|
self.update_feed_if_needed(feed)
|
||||||
info = feed.data
|
info = feed.data
|
||||||
if not info:
|
if not info:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user