UI: Support more errors

This commit is contained in:
Jack Dallas
2022-05-23 15:31:53 +01:00
committed by Dallas
parent 27d90324e0
commit e7794d57cb

View File

@@ -10,6 +10,8 @@
function parseDLSpeedFromMessage(m) {
if (m == "Loading..." || m == undefined) return 0;
if (m == "too many missing articles") return 0;
let speed = m.split(" ")[0];
speed = speed.replace(",", "");
let unit = m.split(" ")[1];