Skip to content

Commit

Permalink
Save each download manifest with its own name
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliykochergin committed Mar 28, 2014
1 parent 087a0f3 commit ba997be
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -133,11 +133,11 @@ public WorkerTask getTask() throws Exception{
final String key = manifestUrl.substring(manifestUrl.lastIndexOf("/")+1);
manifestUrl = manifestUrl.substring(0, manifestUrl.lastIndexOf("/"));
final String bucket = manifestUrl.substring(manifestUrl.lastIndexOf("/")+1);
final ImageManifestFile manifestFile = new ImageManifestFile( String.format("%s/%s", bucket,key),
final ImageManifestFile manifestFile = new ImageManifestFile( String.format("%s/%s", bucket, key),
BundleImageManifest.INSTANCE);
final String downloadManifest =
DownloadManifestFactory.generateDownloadManifest(manifestFile, this.imagingServiceKey,
conversionTask.getImportDisk().getConvertedImage().getPrefix(), 3);
conversionTask.getImportDisk().getConvertedImage().getPrefix() + "-" + image.getFormat(), 5);
image.setDownloadManifestUrl(downloadManifest);
}
}catch(final Exception ex){
Expand Down

0 comments on commit ba997be

Please sign in to comment.