@pixwel/pixwel-sdk 2.1.11 → 2.1.12
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 +303 -306
- 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 +24 -15
- package/coverage/lcov-report/IngestFile.js.html +1 -1
- package/coverage/lcov-report/Model.js.html +138 -138
- package/coverage/lcov-report/Order.js.html +3 -3
- 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 +63 -63
- package/coverage/lcov-report/fileType.js.html +4 -4
- package/coverage/lcov-report/index.html +75 -75
- package/coverage/lcov.info +535 -538
- package/dist/src/Ingest.js +11 -8
- package/package.json +1 -1
- package/src/Ingest.js +11 -8
- package/test/Ingest.spec.js +15 -11
package/dist/src/Ingest.js
CHANGED
|
@@ -554,19 +554,22 @@ var Ingest = function (_Model) {
|
|
|
554
554
|
|
|
555
555
|
var filename = this.mapFromFilename({ allTags: allTags });
|
|
556
556
|
var mediainfo = this.mapFromMediainfo();
|
|
557
|
-
|
|
557
|
+
|
|
558
|
+
var assembled = this.assemble({ filename: filename, mediainfo: mediainfo, order: order });
|
|
559
|
+
this.set(assembled);
|
|
560
|
+
|
|
558
561
|
var name = this.renderFilename({ allTags: allTags, allTypes: allTypes });
|
|
559
562
|
|
|
560
563
|
var file = new _File2.default({
|
|
561
564
|
name: name,
|
|
562
565
|
path: this.renderPath() + "/" + name,
|
|
563
|
-
asset:
|
|
564
|
-
contextTag:
|
|
565
|
-
language:
|
|
566
|
-
country:
|
|
567
|
-
tags: flatValues(
|
|
568
|
-
ingest:
|
|
569
|
-
workRequest:
|
|
566
|
+
asset: this.asset._id,
|
|
567
|
+
contextTag: this.context.tag,
|
|
568
|
+
language: this.selected.download.language,
|
|
569
|
+
country: this.selected.download.country,
|
|
570
|
+
tags: flatValues(this.selected.download.tags),
|
|
571
|
+
ingest: this._id,
|
|
572
|
+
workRequest: this.workRequest,
|
|
570
573
|
verified: true
|
|
571
574
|
});
|
|
572
575
|
|
package/package.json
CHANGED
package/src/Ingest.js
CHANGED
|
@@ -522,19 +522,22 @@ export default class Ingest extends Model {
|
|
|
522
522
|
|
|
523
523
|
let filename = this.mapFromFilename({ allTags });
|
|
524
524
|
let mediainfo = this.mapFromMediainfo();
|
|
525
|
-
|
|
525
|
+
|
|
526
|
+
let assembled = this.assemble({ filename, mediainfo, order });
|
|
527
|
+
this.set(assembled);
|
|
528
|
+
|
|
526
529
|
let name = this.renderFilename({ allTags, allTypes });
|
|
527
530
|
|
|
528
531
|
let file = new File({
|
|
529
532
|
name: name,
|
|
530
533
|
path: `${this.renderPath()}/${name}`,
|
|
531
|
-
asset:
|
|
532
|
-
contextTag:
|
|
533
|
-
language:
|
|
534
|
-
country:
|
|
535
|
-
tags: flatValues(
|
|
536
|
-
ingest:
|
|
537
|
-
workRequest:
|
|
534
|
+
asset: this.asset._id,
|
|
535
|
+
contextTag: this.context.tag,
|
|
536
|
+
language: this.selected.download.language,
|
|
537
|
+
country: this.selected.download.country,
|
|
538
|
+
tags: flatValues(this.selected.download.tags),
|
|
539
|
+
ingest: this._id,
|
|
540
|
+
workRequest: this.workRequest,
|
|
538
541
|
verified: true
|
|
539
542
|
});
|
|
540
543
|
|
package/test/Ingest.spec.js
CHANGED
|
@@ -39,7 +39,7 @@ describe("Ingest", () => {
|
|
|
39
39
|
},
|
|
40
40
|
filename: {
|
|
41
41
|
file: {
|
|
42
|
-
ext:
|
|
42
|
+
ext: "mp4"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
selected: {
|
|
@@ -188,7 +188,7 @@ describe("Ingest", () => {
|
|
|
188
188
|
},
|
|
189
189
|
filename: {
|
|
190
190
|
file: {
|
|
191
|
-
ext:
|
|
191
|
+
ext: "mp4"
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
194
|
selected: {
|
|
@@ -700,7 +700,9 @@ describe("Ingest", () => {
|
|
|
700
700
|
let allTags = [];
|
|
701
701
|
let allTypes = [{ name: "film-clip.intl" }];
|
|
702
702
|
let name = ingest.renderFilename({ allTags, allTypes });
|
|
703
|
-
expect(name).toBe(
|
|
703
|
+
expect(name).toBe(
|
|
704
|
+
"TESTPROJECT_ITR-TEST-ASSET-A_ENG_TXTD_H264_1080p2398.mp4"
|
|
705
|
+
);
|
|
704
706
|
});
|
|
705
707
|
it("throws exception if missing Frame Mode", function() {
|
|
706
708
|
let data = {
|
|
@@ -967,7 +969,7 @@ describe("Ingest", () => {
|
|
|
967
969
|
filename: {
|
|
968
970
|
asset: {},
|
|
969
971
|
file: {
|
|
970
|
-
ext:
|
|
972
|
+
ext: "mp4",
|
|
971
973
|
tags: ["sub"]
|
|
972
974
|
}
|
|
973
975
|
},
|
|
@@ -993,16 +995,18 @@ describe("Ingest", () => {
|
|
|
993
995
|
let ingest = new Ingest(data);
|
|
994
996
|
let file = ingest.createFile({ allTags, allTypes, order });
|
|
995
997
|
let expected = {
|
|
996
|
-
|
|
997
|
-
path: "paramount/project/tv-spot.intl/PROJECT_TV-SPOT-INTL_ASSET_ENG-US_PRORES_768p24.mp4",
|
|
998
|
+
_id: undefined,
|
|
998
999
|
asset: "a1b2c3",
|
|
999
1000
|
contextTag: "FRIDAY",
|
|
1000
|
-
language: "ENG",
|
|
1001
1001
|
country: "US",
|
|
1002
|
-
tags: ["FRIDAY", "prores", "1024x768", "24", "progressive"],
|
|
1003
1002
|
ingest: "a1b2c3",
|
|
1004
|
-
|
|
1005
|
-
|
|
1003
|
+
language: "ENG",
|
|
1004
|
+
name: "PROJECT_TV-SPOT-INTL_ASSET_ENG-US_FRIDAY_PRORES_768p24.mp4",
|
|
1005
|
+
path:
|
|
1006
|
+
"paramount/project/tv-spot.intl/PROJECT_TV-SPOT-INTL_ASSET_ENG-US_FRIDAY_PRORES_768p24.mp4",
|
|
1007
|
+
tags: ["prores", "1024x768", "24", "progressive", "FRIDAY"],
|
|
1008
|
+
verified: true,
|
|
1009
|
+
workRequest: "a1b2c3"
|
|
1006
1010
|
};
|
|
1007
1011
|
expect(file.data()).toEqual(expected);
|
|
1008
1012
|
});
|
|
@@ -1032,7 +1036,7 @@ describe("Ingest", () => {
|
|
|
1032
1036
|
context: {}
|
|
1033
1037
|
};
|
|
1034
1038
|
let filename = {
|
|
1035
|
-
asset: { _id: "a1b2c3" }
|
|
1039
|
+
asset: { _id: "a1b2c3" }
|
|
1036
1040
|
};
|
|
1037
1041
|
let order = new Order();
|
|
1038
1042
|
let ingest = new Ingest(original);
|