1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-08-20 03:28:30 +02:00

Update:Downloading library item shows log on the server with username

This commit is contained in:
advplyr
2023-07-15 13:39:12 -05:00
parent 72e306935f
commit ddc54c8811

@@ -88,7 +88,9 @@ class LibraryItemController {
}
const libraryItemPath = req.libraryItem.path
const filename = `${req.libraryItem.media.metadata.title}.zip`
const itemTitle = req.libraryItem.media.metadata.title
Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${itemTitle}" at "${libraryItemPath}"`)
const filename = `${itemTitle}.zip`
zipHelpers.zipDirectoryPipe(libraryItemPath, filename, res)
}