From 885aad3ed46ef4446d0d4f5983dec37c95bfa74f Mon Sep 17 00:00:00 2001 From: AnessZurba Date: Sat, 23 Apr 2022 16:07:12 +0300 Subject: [PATCH] DownloadQuery: fix download progress Increase the line length limit for the progress parser This fixes the progress when console output includes fragment number. --- modules/download/DownloadQuery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/download/DownloadQuery.js b/modules/download/DownloadQuery.js index e609a6a4..768939af 100644 --- a/modules/download/DownloadQuery.js +++ b/modules/download/DownloadQuery.js @@ -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];