Update LibraryItemController.js

update library item controller to log downloaded ebooks to fix #3215
This commit is contained in:
ic1415 2024-07-31 10:48:41 -04:00 committed by GitHub
parent 787c4e45a8
commit 9eb0ec76fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -738,6 +738,8 @@ class LibraryItemController {
return res.sendStatus(404)
}
const ebookFilePath = ebookFile.metadata.path
Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${ebookFile.metadata.title}" at "${ebookFilePath}"`)
if (global.XAccel) {
const encodedURI = encodeUriPath(global.XAccel + ebookFilePath)