From 4b86ecb244119342be8665274e7f30459834ead0 Mon Sep 17 00:00:00 2001 From: "INSANITY\\Inrix" Date: Wed, 13 Dec 2017 13:14:57 +1300 Subject: [PATCH] Session HotFix --- scrape.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scrape.js b/scrape.js index 899b828..ff44f17 100644 --- a/scrape.js +++ b/scrape.js @@ -136,14 +136,15 @@ function parseKey() { } }, function (err, resp, body) { settings.key = body.replace(/.*wmsAuthSign=*/, '') // Strip everything except for the key from the generated url - if (settings.key.length !== 144) { - console.log('Invalid Key! Attempting to re-authenticate...'); - settings.cookies.ips4_IPSSessionFront = '' - checkAuth().then(constructCookie).then(parseKey).then(resolve) - } else { + //if (settings.key.length !== 144) { + // console.log(settings.key) + // console.log('Invalid Key! Attempting to re-authenticate...'); + // settings.cookies.ips4_IPSSessionFront = '' + // checkAuth().then(constructCookie).then(parseKey).then(resolve) + //} else { console.log('Fetched!\n'); resolve() - } + //} }); }) }