Switch default zip file handler to InfoZip package

This commit is contained in:
Bryan Ashby 2019-08-10 11:09:56 -06:00
parent c71404a641
commit 236e5dedb1
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 22 additions and 2 deletions

View File

@ -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: