From 9fb75c0c0cd8529372694b3a529b1761df97ec25 Mon Sep 17 00:00:00 2001 From: RedDucks Date: Thu, 14 Sep 2017 17:55:31 -0400 Subject: [PATCH] Backend fixed recent issue with api rewrite --- app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.js b/app.js index 757d070..e6b26c1 100644 --- a/app.js +++ b/app.js @@ -437,10 +437,9 @@ function loadGames(dir, master_callback) { function(data, name, is_wud, cb) { fs.ensureDirSync(DATA_ROOT + 'cache/images/' + data.game_title_id); data.screenshots_list = []; - if (data.game_screenshot_urls && data.game_screenshot_urls !== '') { + if (data.game_screenshot_urls && data.game_screenshot_urls !== '' && data.game_screenshot_urls !== 'null') { fs.ensureDirSync(DATA_ROOT + 'cache/images/' + data.game_title_id + '/screenshots'); var urls = data.game_screenshot_urls.split('|'); - console.log(urls); async.each(urls, (url, sc_callback) => { var req = request(url);