From 01d580a08481b66cdac6be5238b0af4af64a3c74 Mon Sep 17 00:00:00 2001 From: Jagua Date: Tue, 20 May 2014 01:03:06 +0900 Subject: fix -list option causing some html tags to be seen. --- zip-de-download.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'zip-de-download.js') diff --git a/zip-de-download.js b/zip-de-download.js index f7a25b4..60c6a3f 100644 --- a/zip-de-download.js +++ b/zip-de-download.js @@ -320,15 +320,16 @@ let SITE_INFO = [ } if ("-list" in arg){ let [file, urls, comment] = self.download(arg[0], true, option); - let xml = ` -

Download :{file.path}

-

{comment}

+ let listUrlsXml = liberator.modules.template.map(urls, function(url) xml`
  • ${url}
  • `); + let listXml = xml` +

    Download :${file.path}

    +

    ${comment}

      - {liberator.modules.template.map(urls, function(url)
    1. {url}
    2. )} + ${listUrlsXml}

    `; - liberator.echo(xml, true); + liberator.echo(listXml, true); return; } liberator.echo("Started DownloadZip"); -- cgit v1.2.3