mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-12 08:29:05 +02:00
Adding chapters and downloading m4b file
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user