From 2b7fa4479ff5020f5f6aa176e180e4d8d4f06d75 Mon Sep 17 00:00:00 2001 From: Gunther Brunner Date: Tue, 17 Jun 2014 23:44:16 +0900 Subject: [PATCH] New devices-db doesn't have a image property. --- lib/util/datautil.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util/datautil.js b/lib/util/datautil.js index afa4d495..32bb26c8 100644 --- a/lib/util/datautil.js +++ b/lib/util/datautil.js @@ -38,7 +38,7 @@ datautil.applyData = function(device) { if (match) { device.name = match.name.id device.releasedAt = match.date - device.image = match.image.s.replace(/^small\//, '') + device.image = model + '.jpg' } else { log.warn( @@ -48,7 +48,7 @@ datautil.applyData = function(device) { ) } } - + return device }