mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-06 07:25:03 +02:00
Adding chapters and downloading m4b file
This commit is contained in:
parent
07a2a0aefd
commit
299fc95c78
24 changed files with 311 additions and 69 deletions
|
@ -418,12 +418,9 @@ class ApiController {
|
|||
|
||||
var options = {
|
||||
headers: {
|
||||
// 'Content-Disposition': `attachment; filename=${download.filename}`,
|
||||
'Content-Type': download.mimeType
|
||||
// 'Content-Length': download.size
|
||||
}
|
||||
}
|
||||
Logger.info('Starting Download', options, 'SIZE', download.size)
|
||||
res.download(download.fullPath, download.filename, options, (err) => {
|
||||
if (err) {
|
||||
Logger.error('Download Error', err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue