@pixwel/pixwel-sdk 2.1.31 → 2.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/clover.xml +463 -456
- package/coverage/coverage-final.json +9 -9
- package/coverage/lcov-report/Ass.js.html +212 -212
- package/coverage/lcov-report/Asset.js.html +27 -27
- package/coverage/lcov-report/AssetType.js.html +1 -1
- package/coverage/lcov-report/Encode.js.html +1 -1
- package/coverage/lcov-report/File.js.html +1 -1
- package/coverage/lcov-report/Filename.js.html +1 -1
- package/coverage/lcov-report/Ingest.js.html +92 -62
- package/coverage/lcov-report/IngestFile.js.html +1 -1
- package/coverage/lcov-report/Model.js.html +136 -136
- package/coverage/lcov-report/Order.js.html +28 -28
- package/coverage/lcov-report/Srt.js.html +102 -102
- package/coverage/lcov-report/Sub.js.html +43 -43
- package/coverage/lcov-report/Tag.js.html +1 -1
- package/coverage/lcov-report/TimeFormat.js.html +62 -62
- package/coverage/lcov-report/fileType.js.html +4 -4
- package/coverage/lcov-report/index.html +85 -85
- package/coverage/lcov.info +851 -840
- package/dist/src/Ingest.js +13 -4
- package/package.json +1 -1
- package/src/Ingest.js +13 -3
- package/test/Ingest.spec.js +66 -1
package/dist/src/Ingest.js
CHANGED
|
@@ -263,14 +263,12 @@ var Ingest = function (_Model) {
|
|
|
263
263
|
width = _tags$Resolution$spli2[0],
|
|
264
264
|
height = _tags$Resolution$spli2[1];
|
|
265
265
|
|
|
266
|
-
var isHD = height === '1080' ? true : false;
|
|
267
|
-
|
|
268
266
|
var aspect = tags.Aspect.replace(':', 'X');
|
|
269
267
|
var standard = tags.Standard.toUpperCase();
|
|
270
268
|
var frameModeToken = tags["Frame Mode"][0].toLowerCase();
|
|
271
269
|
var frameRate = tags.Framerate.replace(".", "");
|
|
272
270
|
|
|
273
|
-
if (tags.
|
|
271
|
+
if ((height === '576' || height === '486') && (tags.Aspect === '4:3' || tags.Aspect === '16:9')) {
|
|
274
272
|
parts = parts.push(standard + "-" + aspect);
|
|
275
273
|
}
|
|
276
274
|
|
|
@@ -570,9 +568,20 @@ var Ingest = function (_Model) {
|
|
|
570
568
|
tags: flatValues(this.selected.download.tags),
|
|
571
569
|
ingest: this._id,
|
|
572
570
|
workRequest: this.workRequest,
|
|
573
|
-
verified: true
|
|
571
|
+
verified: true,
|
|
572
|
+
embargo: {
|
|
573
|
+
event: false
|
|
574
|
+
}
|
|
574
575
|
});
|
|
575
576
|
|
|
577
|
+
if (this.selected.download.embargo.end) {
|
|
578
|
+
file.embargo.end = this.selected.download.embargo.end;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (this.selected.download.embargo.start) {
|
|
582
|
+
file.embargo.start = this.selected.download.embargo.start;
|
|
583
|
+
}
|
|
584
|
+
|
|
576
585
|
return file;
|
|
577
586
|
}
|
|
578
587
|
/**
|
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
|
@@ -222,14 +222,13 @@ export default class Ingest extends Model {
|
|
|
222
222
|
if (mediaType === 'video' && tags.Aspect && tags.Resolution && tags.Standard && tags.Framerate && tags['Frame Mode']) {
|
|
223
223
|
|
|
224
224
|
let [ width, height ] = tags.Resolution.split('x');
|
|
225
|
-
let isHD = (height === '1080') ? true : false;
|
|
226
225
|
|
|
227
226
|
let aspect = tags.Aspect.replace(':', 'X');
|
|
228
227
|
let standard = tags.Standard.toUpperCase();
|
|
229
228
|
let frameModeToken = tags["Frame Mode"][0].toLowerCase();
|
|
230
229
|
let frameRate = tags.Framerate.replace(".", "");
|
|
231
230
|
|
|
232
|
-
if (tags.
|
|
231
|
+
if ((height === '576' || height === '486') && (tags.Aspect === '4:3' || tags.Aspect === '16:9')) {
|
|
233
232
|
parts = parts.push(`${standard}-${aspect}`);
|
|
234
233
|
}
|
|
235
234
|
|
|
@@ -516,9 +515,20 @@ export default class Ingest extends Model {
|
|
|
516
515
|
tags: flatValues(this.selected.download.tags),
|
|
517
516
|
ingest: this._id,
|
|
518
517
|
workRequest: this.workRequest,
|
|
519
|
-
verified: true
|
|
518
|
+
verified: true,
|
|
519
|
+
embargo: {
|
|
520
|
+
event: false
|
|
521
|
+
}
|
|
520
522
|
});
|
|
521
523
|
|
|
524
|
+
if (this.selected.download.embargo.end) {
|
|
525
|
+
file.embargo.end = this.selected.download.embargo.end;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
if (this.selected.download.embargo.start) {
|
|
529
|
+
file.embargo.start = this.selected.download.embargo.start;
|
|
530
|
+
}
|
|
531
|
+
|
|
522
532
|
return file;
|
|
523
533
|
}
|
|
524
534
|
/**
|
package/test/Ingest.spec.js
CHANGED
|
@@ -26,6 +26,55 @@ describe("Ingest", () => {
|
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
describe("renderFilename", () => {
|
|
29
|
+
it("should not render EncodeName for PRORES 1080x1920", function() {
|
|
30
|
+
let data = {
|
|
31
|
+
asset: {
|
|
32
|
+
name: "HELLO",
|
|
33
|
+
slug: "HELLO",
|
|
34
|
+
type: "trailer.intl",
|
|
35
|
+
mediaType: "video",
|
|
36
|
+
project: {
|
|
37
|
+
filePrefix: "TESTPROJECT"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
filename: {
|
|
41
|
+
file: {
|
|
42
|
+
ext: "mp4"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
selected: {
|
|
46
|
+
download: {
|
|
47
|
+
enabled: false,
|
|
48
|
+
tags: {
|
|
49
|
+
Extra: ["REDUX"],
|
|
50
|
+
Framerate: "23.98",
|
|
51
|
+
Codec: "prores",
|
|
52
|
+
Resolution: "1080x1920",
|
|
53
|
+
"Frame Mode": "interlaced",
|
|
54
|
+
Text: "txtd2",
|
|
55
|
+
SubDub: {
|
|
56
|
+
sub: null,
|
|
57
|
+
dub: null
|
|
58
|
+
},
|
|
59
|
+
Standard: "ntsc",
|
|
60
|
+
Usage: "broadcast",
|
|
61
|
+
Aspect: "16:9"
|
|
62
|
+
},
|
|
63
|
+
embargo: { enabled: false },
|
|
64
|
+
country: "US",
|
|
65
|
+
language: "ENG"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
let ingest = new Ingest(data);
|
|
70
|
+
let allTags = [];
|
|
71
|
+
let allTypes = [];
|
|
72
|
+
let extension = "mp4";
|
|
73
|
+
let name = ingest.renderFilename({ allTags, allTypes, extension });
|
|
74
|
+
expect(name).toBe(
|
|
75
|
+
"TESTPROJECT_ITR-HELLO_ENG-US_TXTD2_REDUX_PRORES_1920i2398.mp4"
|
|
76
|
+
);
|
|
77
|
+
});
|
|
29
78
|
it("renders EncodeName for interlaced HD 1080i2398", function() {
|
|
30
79
|
let data = {
|
|
31
80
|
asset: {
|
|
@@ -1237,6 +1286,10 @@ describe("Ingest", () => {
|
|
|
1237
1286
|
Resolution: "1024x768",
|
|
1238
1287
|
Framerate: "24",
|
|
1239
1288
|
"Frame Mode": "progressive"
|
|
1289
|
+
},
|
|
1290
|
+
embargo: {
|
|
1291
|
+
enabled: true,
|
|
1292
|
+
end: 1574834400
|
|
1240
1293
|
}
|
|
1241
1294
|
}
|
|
1242
1295
|
}
|
|
@@ -1252,12 +1305,24 @@ describe("Ingest", () => {
|
|
|
1252
1305
|
asset: "a1b2c3",
|
|
1253
1306
|
contextTag: "FRIDAY",
|
|
1254
1307
|
country: "US",
|
|
1308
|
+
embargo: {
|
|
1309
|
+
end: 1574834400,
|
|
1310
|
+
event: false
|
|
1311
|
+
},
|
|
1255
1312
|
ingest: "a1b2c3",
|
|
1256
1313
|
language: "ENG",
|
|
1257
1314
|
name: "PROJECT_TV-SPOT-INTL_ASSET_ENG-US_FRIDAY_PRORES_768p24.mp4",
|
|
1258
1315
|
path:
|
|
1259
1316
|
"paramount/project/tv-spot.intl/PROJECT_TV-SPOT-INTL_ASSET_ENG-US_FRIDAY_PRORES_768p24.mp4",
|
|
1260
|
-
tags: [
|
|
1317
|
+
tags: [
|
|
1318
|
+
"4:3",
|
|
1319
|
+
"ntsc",
|
|
1320
|
+
"prores",
|
|
1321
|
+
"1024x768",
|
|
1322
|
+
"24",
|
|
1323
|
+
"progressive",
|
|
1324
|
+
"FRIDAY"
|
|
1325
|
+
],
|
|
1261
1326
|
verified: true,
|
|
1262
1327
|
workRequest: "a1b2c3"
|
|
1263
1328
|
};
|