From 236e5dedb15931fb23dfa3028b0836a9c051e0e5 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 10 Aug 2019 11:09:56 -0600 Subject: [PATCH] Switch default zip file handler to InfoZip package --- core/config.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/core/config.js b/core/config.js index d9a5684b..8b335d44 100644 --- a/core/config.js +++ b/core/config.js @@ -577,7 +577,7 @@ function getDefaultConfig() { desc : 'ZIP Archive', sig : '504b0304', offset : 0, - archiveHandler : '7Zip', + archiveHandler : 'InfoZip', }, /* 'application/x-cbr' : { @@ -651,7 +651,7 @@ function getDefaultConfig() { archives : { archivers : { - '7Zip' : { + '7Zip' : { // p7zip package compress : { cmd : '7za', args : [ 'a', '-tzip', '{archivePath}', '{fileList}' ], @@ -671,6 +671,26 @@ function getDefaultConfig() { }, }, + InfoZip: { + compress : { + cmd : 'zip', + args : [ '{archivePath}', '{fileList}' ], + }, + decompress : { + cmd : 'unzip', + args : [ '{archivePath}', '-d', '{extractPath}' ], + }, + list : { + cmd : 'unzip', + args : [ '-l', '{archivePath}' ], + entryMatch : '^\\s*([0-9]+)\\s+[0-9]{4}-[0-9]{2}-[0-9]{2}\\s+[0-9]{2}:[0-9]{2}\\s+([^\\r\\n]+)$', + }, + extract : { + cmd : 'unzip', + args : [ '{archivePath}', '{fileList}', '-d', '{extractPath}' ], + } + }, + Lha : { // // 'lha' command can be obtained from: