Skip to content
This repository was archived by the owner on Mar 25, 2019. It is now read-only.

Commit eee4939

Browse files
author
Sjoerd Tieleman
committed
Added option to use an array for encoder_options to allow more complex commands
1 parent 2d46439 commit eee4939

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/job.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ var Job = JobUtils.getDatabase().define('Job', {
245245

246246
if (this.parsedOpts()['encoder_options'].length > 0) {
247247
// "proper" transcoding job
248-
args = args.concat(this.parsedOpts()['encoder_options'].replace(/\s+/g, " ").split(' '));
248+
if (Array.isArray(this.parsedOpts()['encoder_options'])) {
249+
args = args.concat(this.parsedOpts()['encoder_options']);
250+
} else {
251+
args = args.concat(this.parsedOpts()['encoder_options'].replace(/\s+/g, " ").split(' '));
252+
}
249253
var tmpFile = outputDir + path.sep + this.internalId + extension;
250254

251255
if (config['use_scratch_dir'] == true) {

0 commit comments

Comments
 (0)