dasha 2.2.5 → 2.2.6
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/lib/manifest.js +4 -2
- package/package.json +4 -4
package/lib/manifest.js
CHANGED
|
@@ -55,7 +55,7 @@ class Manifest {
|
|
|
55
55
|
adaptationSet.representations.some((r) => r.mimeType?.includes('audio'))) &&
|
|
56
56
|
!adaptationSet.maxWidth;
|
|
57
57
|
const filterLanguages = (adaptationSet) =>
|
|
58
|
-
languages ? languages.some((lang) => adaptationSet.lang.includes(lang)) : true;
|
|
58
|
+
languages?.length ? languages.some((lang) => adaptationSet.lang.includes(lang)) : true;
|
|
59
59
|
const adaptationSets = this.periods
|
|
60
60
|
.map((p) => p.adaptationSets)
|
|
61
61
|
.flat(1)
|
|
@@ -94,7 +94,9 @@ class Manifest {
|
|
|
94
94
|
.filter(isSubtitleAdaptationSet);
|
|
95
95
|
|
|
96
96
|
const representations = adaptationSets.map((a) => a.representations).flat(2);
|
|
97
|
-
const matches = representations.filter((r) =>
|
|
97
|
+
const matches = representations.filter((r) =>
|
|
98
|
+
languages?.length ? languages?.some((lang) => r.lang.includes(lang)) : true
|
|
99
|
+
);
|
|
98
100
|
const selectedRepresentations = matches?.length ? matches : representations;
|
|
99
101
|
|
|
100
102
|
const tracks = [];
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dasha",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"author": "Vitaliy Gashkov <vitnore@gmail.com>",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Parser of MPD-manifests for MPEG DASH",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"mpeg",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"url": "git+https://github.com/vitnore/dasha.git"
|
|
23
23
|
},
|
|
24
24
|
"funding": {
|
|
25
|
-
"type": "
|
|
26
|
-
"url": "https://
|
|
25
|
+
"type": "individual",
|
|
26
|
+
"url": "https://boosty.to/vitnore"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"test": "jest",
|