aboutsummaryrefslogtreecommitdiffstats
path: root/zip-de-download.js
diff options
context:
space:
mode:
Diffstat (limited to 'zip-de-download.js')
-rw-r--r--zip-de-download.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/zip-de-download.js b/zip-de-download.js
index 47a2804..e83e876 100644
--- a/zip-de-download.js
+++ b/zip-de-download.js
@@ -1,5 +1,5 @@
let INFO =
-<plugin name="zip-de-download" version="0.6.0"
+<plugin name="zip-de-download" version="0.6.1"
href=""
summary="ZIPでダウンロードするお"
xmlns="http://vimperator.org/namespaces/liberator">
@@ -156,7 +156,7 @@ let SITE_INFO = [
};
let ext = mimeService.getPrimaryExtension(mime ? mime : mimeType, null)
let name = uri.path.split("/").pop();
- name = (name ? name : "index") + (mime ? "" : "."+ext);
+ name = (name ? name : "index") + (mime ? "" : "." + ext);
return name;
}
function getDownloadDirectory(){
@@ -193,7 +193,7 @@ let SITE_INFO = [
let ch = createChannel(url);
try {
let stream = ch.open();
- let entryName = ("000" + ++i).slice(-3) +"-"+ getEntryName(ch.URI, ch.contentType);
+ let entryName = ("000" + ++i).slice(-3) + "-" + getEntryName(ch.URI, ch.contentType);
liberator.echomsg("zip: " + url + " to " + entryName, 3);
zipW.addEntryStream(entryName, Date.now() * 1000, Ci.nsIZipWriter.COMPRESSION_DEFAULT, stream, false);
} catch (e) {
@@ -290,16 +290,17 @@ let SITE_INFO = [
liberator.echo(xml, true);
return;
}
+ liberator.echo("Started DownloadZip");
let zipFile = self.download(arg[0], false, option);
liberator.echo("Completed DownloadZip: " + zipFile.path);
}, {
argCount: "?",
literal: true,
options: [
- [["-list","-l"], liberator.modules.commands.OPTION_NOARG],
- [["-append","-a"], liberator.modules.commands.OPTION_NOARG],
- [["-xpath","-x"], liberator.modules.commands.OPTION_STRING],
- [["-filter","-f"], liberator.modules.commands.OPTION_STRING],
+ [["-list", "-l"], liberator.modules.commands.OPTION_NOARG],
+ [["-append", "-a"], liberator.modules.commands.OPTION_NOARG],
+ [["-xpath", "-x"], liberator.modules.commands.OPTION_STRING],
+ [["-filter", "-f"], liberator.modules.commands.OPTION_STRING]
],
completer: liberator.modules.completion.file
}, true);
211'>211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296