Skip to content

Commit 164334a

Browse files
committed
fix: ensure patch manifests are parsed correctly
1 parent 2c0ce13 commit 164334a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"yargs": "^17.7.2"
8585
},
8686
"dependencies": {
87-
"@svta/common-media-library": "^0.11.0",
87+
"@svta/common-media-library": "^0.12.3",
8888
"bcp-47-match": "^2.0.3",
8989
"bcp-47-normalize": "^2.3.0",
9090
"codem-isoboxer": "0.3.10",

src/dash/parser/DashParser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ function DashParser(config) {
136136
}
137137

138138
function processXml(data) {
139-
const xml = cmlParseXml(data)
140-
const root = xml.childNodes.find(child => child.nodeName === 'MPD');
139+
const xml = cmlParseXml(data);
140+
const root = xml.childNodes.find(child => child.nodeName === 'MPD' || child.nodeName === 'Patch') || xml.childNodes[0];
141141

142142
function processNode(node) {
143143
// Convert tag name

0 commit comments

Comments
 (0)