Skip to content

Commit

Permalink
DownloadQuery: fix download progress
Browse files Browse the repository at this point in the history
Increase the line length limit for the progress parser
This fixes the progress when console output includes
fragment number.
  • Loading branch information
AnessZurba committed Apr 23, 2022
1 parent 29f63a5 commit 885aad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/download/DownloadQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ class DownloadQuery extends Query {
let liveDataArray = liveData.split(" ").filter((el) => {
return el !== ""
});
if (liveDataArray.length > 10) return;
liveDataArray = liveDataArray.filter((el) => {
return el !== "\n"
});
if (liveDataArray.length > 10) return;
let percentage = liveDataArray[1];
let speed = liveDataArray[5];
let eta = liveDataArray[7];
Expand Down

0 comments on commit 885aad3

Please sign in to comment.