diff --git a/index.html b/index.html index 5e51011..334e1c1 100755 --- a/index.html +++ b/index.html @@ -301,7 +301,7 @@ - {{download.name}} + {{download.name}} diff --git a/js/ctrls/download.js b/js/ctrls/download.js index 9820d79..a11a6df 100644 --- a/js/ctrls/download.js +++ b/js/ctrls/download.js @@ -258,6 +258,7 @@ function( fmtDownloadSpeed: utils.fmtspeed(d.downloadSpeed), uploadSpeed: d.uploadSpeed, fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed), + collapsed: true, files: [] }; } @@ -333,10 +334,9 @@ function( } ctx.name = btName || dlName || "Unknown"; - - // collapse the download details initially - if (ctx.collapsed === undefined) { - ctx.collapsed = true; + ctx.metadata = ctx.name.startsWith("[METADATA]"); + if (ctx.metadata) { + ctx.name = ctx.name.substr(10); } return ctx;