Skip to content

Commit 885aad3

Browse files
committed
DownloadQuery: fix download progress
Increase the line length limit for the progress parser This fixes the progress when console output includes fragment number.
1 parent 29f63a5 commit 885aad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/download/DownloadQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ class DownloadQuery extends Query {
172172
let liveDataArray = liveData.split(" ").filter((el) => {
173173
return el !== ""
174174
});
175-
if (liveDataArray.length > 10) return;
176175
liveDataArray = liveDataArray.filter((el) => {
177176
return el !== "\n"
178177
});
178+
if (liveDataArray.length > 10) return;
179179
let percentage = liveDataArray[1];
180180
let speed = liveDataArray[5];
181181
let eta = liveDataArray[7];

0 commit comments

Comments
 (0)