diff --git a/app/index.js b/app/index.js index a44dcbe..82be7c1 100644 --- a/app/index.js +++ b/app/index.js @@ -383,7 +383,7 @@ function isCookieExpired(cookie) { let expiredCookies = false; // Ignore cookies that never expire - const expirationUnixTimestamp = cookie["expire"]; + const expirationUnixTimestamp = cookie.expire; if (expirationUnixTimestamp !== "-1") { // Convert UNIX epoch timestamp to normal Date @@ -392,7 +392,7 @@ function isCookieExpired(cookie) { if (expirationDate < Date.now()) { if (shared.debug) console.log( - "Cookie " + cookie["name"] + " expired, you need to re-authenticate" + "Cookie " + cookie.name + " expired, you need to re-authenticate" ); expiredCookies = true; } diff --git a/app/scripts/game-scraper.js b/app/scripts/game-scraper.js index cc66855..b86a75e 100644 --- a/app/scripts/game-scraper.js +++ b/app/scripts/game-scraper.js @@ -56,9 +56,9 @@ module.exports.getGameInfo = async function (browser, url) { info.f95url = url; info.version = info.isMod ? parsedInfos["MOD VERSION"] - : parsedInfos["VERSION"]; + : parsedInfos.VERSION; info.lastUpdate = info.isMod - ? parsedInfos["UPDATED"] + ? parsedInfos.UPDATED : parsedInfos["THREAD UPDATED"]; info.previewSource = await previewSource; info.changelog = (await changelog) || "Unknown changelog";