dasha 4.0.0-alpha.7 → 4.0.0-alpha.8
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/dist/dasha.cjs +1 -1
- package/dist/dasha.mjs +1 -1
- package/package.json +1 -1
package/dist/dasha.cjs
CHANGED
|
@@ -856,7 +856,7 @@ var DashExtractor = class DashExtractor {
|
|
|
856
856
|
this.#baseUrl = this.#parserConfig.baseUrl ?? this.#mpdUrl;
|
|
857
857
|
}
|
|
858
858
|
#extendBaseUrl(node, baseUrl) {
|
|
859
|
-
const target = node.getElementsByTagName("BaseURL")[0];
|
|
859
|
+
const target = node.getElementsByTagName("BaseURL").filter((n) => !!n.parentNode?.isSameNode(node))[0];
|
|
860
860
|
if (target?.textContent) return combineUrl(baseUrl, target.textContent);
|
|
861
861
|
return baseUrl;
|
|
862
862
|
}
|
package/dist/dasha.mjs
CHANGED
|
@@ -831,7 +831,7 @@ var DashExtractor = class DashExtractor {
|
|
|
831
831
|
this.#baseUrl = this.#parserConfig.baseUrl ?? this.#mpdUrl;
|
|
832
832
|
}
|
|
833
833
|
#extendBaseUrl(node, baseUrl) {
|
|
834
|
-
const target = node.getElementsByTagName("BaseURL")[0];
|
|
834
|
+
const target = node.getElementsByTagName("BaseURL").filter((n) => !!n.parentNode?.isSameNode(node))[0];
|
|
835
835
|
if (target?.textContent) return combineUrl(baseUrl, target.textContent);
|
|
836
836
|
return baseUrl;
|
|
837
837
|
}
|