aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-08-02 19:04:20 +0200
committerlonkaars <loek@pipeframe.xyz>2021-08-02 19:04:20 +0200
commitec23591bd3ea677e38be77df0444474104355d3b (patch)
treee39692a744719b27373fa5bb8ce72024112a52a6
parent0d4cae99db57e16035fdf609d22344a44a2009a1 (diff)
repeat parse not working properly hahaHEADmaster
-rwxr-xr-xdl.js2
1 files changed, 1 insertions, 1 deletions
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)