Skip to content

Commit

Permalink
fix: add compatibility for SegmentTemplate substring
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnangua committed Nov 26, 2024
1 parent aafdebe commit 1142165
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ const parseContentProtection = (contentProtections) => {
};

const parseManifest = async (text, url, fallbackLanguage) => {
text = text.replace(/\$.*?(RepresentationID|Number|Time).*?\$/g, "$$$1$$");
const mpd = appendUtils(xml.parse(text)).get('MPD');
const period = mpd.get('Period');
const durationString =
Expand Down

0 comments on commit 1142165

Please sign in to comment.