[nodebb-plugin-rss] RSS Feed plugin
-
@julian Haha, he would if I could test it.
Doesn't seem to be working for me. I add the RSS feed and it seems to do an initial pull (I have it set for 1 minute) but doesn't continue looking (or at the very least, nothing new gets added).
Very strange how I delete the RSS feed, add it. It pulls all items and they show up fine. Duplicate appear to have stop showing up, but nothing new shows up either for me, it seems. Unfortuantely there's no verbose output when running nodebb dev so I can't see it trying to do anything either.
I'll keep messing around with it and see if it's something on my end I guess.
-
If there are any errors the plugin logs them to the console or the output.log file in your nodebb folder.
If you want to add more logging you can modify the plugin source to see what's going on.
For example if you want to see what the plugin pulls from google every minute you can add a
console.log(entries);
here. -
-
For the plugins that are not working you can either open issues on their github repos or make a thread in the NodeBB dev category. We updated most of the core plugins to be compatible with 0.6.0 but there plently of 3rd party plugins that are not yet updated.
-
-
Published 0.2.3, added a new option that lets you specify the number of entries to pull per interval. This value is the
num
parameter in the google api string.http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&q=http://yourfeed.rss
It was previously hardcoded to 4, which would result in some entries to be skipped if you had more than 4 entries per interval.
Also keep in mind google caches the data from the feed so changes are not immediately pulled.
-
For anyone who may want to bypass the google cache, you can edit the index.js file and do the following. At line 228ish where it requests the feed, I edited it like so:
function getFeedByGoogle(feedUrl, callback) { var rsscurtime = new Date().getTime() / 1000; request('http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=4&q=' + encodeURIComponent(feedUrl) + '?' + rsscurtime, function (err, response, body)
Essentially I just set rsscurtime to unix time, and tacked that on to the end of the URL set in the control panel. It works fine with my feed but of course YMMV.
-