From 574fe38d38fa92f030e9d47f47eaf5725a0831eb Mon Sep 17 00:00:00 2001 From: an Date: Wed, 21 Feb 2018 22:30:24 +0100 Subject: [PATCH] rss -> gorss --- modules/rss.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/rss.go b/modules/rss.go index d2b12d5..5934ddd 100644 --- a/modules/rss.go +++ b/modules/rss.go @@ -15,7 +15,7 @@ import ( "os" "time" - "git.dnix.de/an/rss" + "git.dnix.de/an/gorss" "git.dnix.de/an/xlog" "git.dnix.de/an/xmlx" ) @@ -53,7 +53,7 @@ func rssHandleMessage(m *Message) { } func rssPollFeed(uri string, timeout int, cr xmlx.CharsetFunc) { - feed := rss.New(timeout, true, rssChanHandler, rssItemHandler) + feed := gorss.New(timeout, true, rssChanHandler, rssItemHandler) for { xlog.Info("Polling feed: %s", uri) if err := feed.Fetch(uri, cr); err != nil { @@ -65,11 +65,11 @@ func rssPollFeed(uri string, timeout int, cr xmlx.CharsetFunc) { } } -func rssChanHandler(feed *rss.Feed, newchannels []*rss.Channel) { +func rssChanHandler(feed *gorss.Feed, newchannels []*gorss.Channel) { //SayCh <- fmt.Sprintf("%s\n[RSS] %d new channel(s) in %s", "*", len(newchannels), feed.Url) } -func rssItemHandler(feed *rss.Feed, ch *rss.Channel, newitems []*rss.Item) { +func rssItemHandler(feed *gorss.Feed, ch *gorss.Channel, newitems []*gorss.Item) { if hideOutput { return }