From 6c536db685a04785905057ffe89f107896ebca26 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Wed, 19 Jul 2017 01:24:50 +0100 Subject: [PATCH] Rss package bump --- examples/simple.js | 9 ++------- lib/RssBraider.js | 2 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/examples/simple.js b/examples/simple.js index 87a5a86..504ff41 100644 --- a/examples/simple.js +++ b/examples/simple.js @@ -14,14 +14,9 @@ feeds.simple_test_feed = { }, "sources" : [ { - "name" : "NPR Headlines", + "name" : "Jobsite", "count" : 2, - "feed_url" : "http://www.npr.org/rss/rss.php?id=1001", - }, - { - "name" : "NPR Sports", - "count" : 2, - "feed_url" : "http://www.npr.org/rss/rss.php?id=1055" + "feed_url" : "http://www.jobsite.co.uk/cgi-bin/advsearch?rss_feed=1&daysback=1&jbe_id=47820652", } ] }; diff --git a/lib/RssBraider.js b/lib/RssBraider.js index cd48ca1..f14f625 100644 --- a/lib/RssBraider.js +++ b/lib/RssBraider.js @@ -77,6 +77,7 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback) // Process each feed source through Feedparser to get articles. // Then process each item/article through rss-braider and any plugins async.each(feed.sources, function(source, callback) { + self.logger.debug('url:', source.feed_url); var count = source.count || feed.default_count || 10, // Number of articles per source url = source.feed_url || null, file_path = source.file_path || null, @@ -91,6 +92,7 @@ RssBraider.prototype.processFeed = function(feed_name, format, callback) }); req.on('response', function (res) { + self.logger.debug('>> res.statusCode ', res.statusCode ); var stream = this; if (res.statusCode !== 200) { return this.emit('error', 'Bad status code: ' + res.statusCode);