diff --git a/server/controllers/LibraryItemController.js b/server/controllers/LibraryItemController.js index 0d78e06a..5ecd7c3b 100644 --- a/server/controllers/LibraryItemController.js +++ b/server/controllers/LibraryItemController.js @@ -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) }