From ec23591bd3ea677e38be77df0444474104355d3b Mon Sep 17 00:00:00 2001 From: lonkaars Date: Mon, 2 Aug 2021 19:04:20 +0200 Subject: repeat parse not working properly haha --- dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dl.js b/dl.js index 4126137..fc5f81d 100755 --- a/dl.js +++ b/dl.js @@ -21,7 +21,7 @@ function getDLURLs(streaminfo, baseURL) { var time = 0; urls.push(toDownload.$.initialization.replace("$RepresentationID$", highestQuality.id)); toDownload.SegmentTimeline[0].S.forEach(segment => { - var repeat = segment.$.r || 1; + var repeat = Number(segment.$.r || 0) + 1; for(let i = 0; i < repeat; i++) { urls.push(toDownload.$.media .replace("$RepresentationID$", highestQuality.id) -- cgit v1.2.3