|
@@ -145,7 +145,9 @@ Audiogram.prototype.combineFrames = function(cb) {
|
145
|
145
|
Audiogram.prototype.render = function(cb) {
|
146
|
146
|
|
147
|
147
|
var self = this,
|
148
|
|
- q = queue(1);
|
|
148
|
+ q = queue(1),
|
|
149
|
+ identifier = self.settings.identifier;
|
|
150
|
+ ;
|
149
|
151
|
|
150
|
152
|
this.status("audio-download");
|
151
|
153
|
|
|
@@ -170,7 +172,7 @@ Audiogram.prototype.render = function(cb) {
|
170
|
172
|
q.defer(this.combineFrames.bind(this));
|
171
|
173
|
|
172
|
174
|
// Upload video to S3 or move to local storage
|
173
|
|
- q.defer(transports.uploadVideo, this.videoPath, "video/" + this.id + ".mp4");
|
|
175
|
+ q.defer(transports.uploadVideo, this.videoPath, "video/" + identifier + ".mp4");
|
174
|
176
|
|
175
|
177
|
// Delete working directory
|
176
|
178
|
q.defer(rimraf, this.dir);
|
|
@@ -179,7 +181,7 @@ Audiogram.prototype.render = function(cb) {
|
179
|
181
|
q.await(function(err){
|
180
|
182
|
|
181
|
183
|
if (!err) {
|
182
|
|
- self.set("url", transports.getURL(self.id));
|
|
184
|
+ self.set("url", transports.getURL(identifier));
|
183
|
185
|
}
|
184
|
186
|
|
185
|
187
|
logger.debug(self.profiler.print());
|