Permalink
Browse files

v0.47

1 parent 0dd6ae3 commit d794c112b327aec28f441f6a8d72c7c95c47e736 @scripting committed Feb 11, 2017
Showing with 12 additions and 5 deletions.
  1. +1 −1 README.md
  2. +11 −4 lib/feedtools.js
View
@@ -106,7 +106,7 @@ The plan is to eventually offer it through the Node.js package distribution syst
##### v0.47 -- 2/9/17 by DW
-Fixed two problems reported by Andrew Shell. Added some feeds to the default set up, and configured the default home page so it only has three panels and they have intelligent labels, using the relatively new <a href="https://github.com/scripting/river5/blob/master/docs/CONFIG.md#configuring-the-home-page">homePage</a> configuration option.
+Fixed two problems reported by Andrew Shell. Added some feeds to the default set up, and configured the default home page so it only has three panels and they have intelligent labels, using the relatively new <a href="https://github.com/scripting/river5/blob/master/docs/CONFIG.md#configuring-the-home-page">homePage</a> configuration option. Fixed a <a href="http://scripting.com/2017/02/11/cookiesInNytFeeds.html">problem</a> with NYT feeds and cookies.
##### v0.46 -- 11/16/16 by DW
View
@@ -25,7 +25,7 @@
exports.init = init;
-var myProductName = "River5"; myVersion = "0.47b";
+var myProductName = "River5"; myVersion = "0.47c";
var fs = require ("fs");
var request = require ("request");
@@ -345,6 +345,13 @@ var whenServerStart = new Date ();
writeStats (fnameFeedsInLists, feedsInLists);
}
//feeds
+ function myRequestCall (url) { //2/11/17 by DW
+ var options = {
+ url: url,
+ jar: true
+ };
+ return (request (options));
+ }
function getFolderForFeed (urlfeed) { //return path to the folder for the feed
var s = urlfeed;
if (utils.beginsWith (s, "http://")) {
@@ -582,7 +589,7 @@ var whenServerStart = new Date ();
urlfeed = "http://" + utils.stringDelete (urlfeed, 1, 7);
}
- var req = request (urlfeed);
+ var req = myRequestCall (urlfeed);
var feedparser = new FeedParser ();
req.on ("response", function (res) {
var stream = this;
@@ -853,7 +860,7 @@ var whenServerStart = new Date ();
writeFile (f, utils.jsonStringify (listObj), callback);
}
function readIncludedList (listname, urloutline) { //6/17/14 by DW
- var req = request (urloutline);
+ var req = myRequestCall (urloutline);
var opmlparser = new OpmlParser ();
req.on ("response", function (res) {
var stream = this;
@@ -1591,7 +1598,7 @@ var whenServerStart = new Date ();
writeStats (config.statsFilePath, serverStats);
}
function getFeedMetadata (url, callback) { //12/1/14 by DW
- var req = request (url), feedparser = new FeedParser ();
+ var req = myRequestCall (url), feedparser = new FeedParser ();
req.on ("response", function (res) {
var stream = this;
if (res.statusCode == 200) {

0 comments on commit d794c11

Please sign in to comment.