diff --git a/lib/db-transformer.js b/lib/db-transformer.js index 1ee3fc29..6a0bcd8e 100644 --- a/lib/db-transformer.js +++ b/lib/db-transformer.js @@ -38,24 +38,6 @@ module.exports = function(settings, data) { images[app.icons['64']] = icon.path; app.icon = icon.url; - // Process the app's preview screenshots. We need to queue both the - // thumbnail and full-sized version it for later downloading and rewrite - // the JSON to use an absolute URL. We only want to save the first 3 - // previews. - if (app.previews.length > 0) { - app.previews = app.previews.slice(0, 3); - Object.keys(app.previews).forEach(function(index) { - var screenshot_url = app.previews[index].image_url; - var thumbnail_url = app.previews[index].thumbnail_url; - var screenshot = imageLocations(screenshot_url, 'screenshots'); - var thumbnail = imageLocations(thumbnail_url, 'thumbnails'); - images[screenshot_url] = screenshot.path; - images[thumbnail_url] = thumbnail.path; - app.previews[index].image_url = screenshot.url; - app.previews[index].thumbnail_url = thumbnail.url; - }); - } - // Flatten object of localised name to one key for easy searching. app.name_search = []; Object.keys(app.name).forEach(function(locale) {