From 78b4eb50b5ad90d42cce9786c791557f6711f358 Mon Sep 17 00:00:00 2001 From: Chuck Harmston Date: Fri, 25 Apr 2014 11:28:53 -0500 Subject: [PATCH] Do not save screenshots when creating a package. --- lib/db-transformer.js | 18 ------------------ 1 file changed, 18 deletions(-) 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) {