Merge pull request #3217 from ic1415/LibraryItemController

Update LibraryItemController.js
This commit is contained in:
advplyr 2024-08-02 16:33:23 -05:00 committed by GitHub
commit 39c26d2bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -739,6 +739,8 @@ class LibraryItemController {
}
const ebookFilePath = ebookFile.metadata.path
Logger.info(`[LibraryItemController] User "${req.user.username}" requested download for item "${req.libraryItem.media.metadata.title}" ebook at "${ebookFilePath}"`)
if (global.XAccel) {
const encodedURI = encodeUriPath(global.XAccel + ebookFilePath)
Logger.debug(`Use X-Accel to serve static file ${encodedURI}`)