diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-08-02 19:04:20 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-08-02 19:04:20 +0200 |
commit | ec23591bd3ea677e38be77df0444474104355d3b (patch) | |
tree | e39692a744719b27373fa5bb8ce72024112a52a6 | |
parent | 0d4cae99db57e16035fdf609d22344a44a2009a1 (diff) |
-rwxr-xr-x | dl.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |