mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-06 00:16:02 +01:00
Merge pull request #3714 from nichwall/zip_download_speedup
Change: no compression when downloading library item as zip file
This commit is contained in:
commit
d811ec3806
@ -7,7 +7,7 @@ module.exports.zipDirectoryPipe = (path, filename, res) => {
|
|||||||
res.attachment(filename)
|
res.attachment(filename)
|
||||||
|
|
||||||
const archive = archiver('zip', {
|
const archive = archiver('zip', {
|
||||||
zlib: { level: 9 } // Sets the compression level.
|
zlib: { level: 0 } // Sets the compression level.
|
||||||
})
|
})
|
||||||
|
|
||||||
// listen for all archive data to be written
|
// listen for all archive data to be written
|
||||||
|
Loading…
Reference in New Issue
Block a user