Update:New API routes for library files and downloads

This commit is contained in:
advplyr 2023-05-28 12:34:22 -05:00
parent ea79948122
commit 019063e6f4
9 changed files with 103 additions and 19 deletions

View file

@ -28,6 +28,7 @@ class VideoTrack {
this.index = videoFile.index
this.duration = videoFile.duration
this.title = videoFile.metadata.filename || ''
// TODO: Switch to /api/items/:id/file/:fileid
this.contentUrl = Path.join(`${global.RouterBasePath}/s/item/${itemId}`, encodeUriPath(videoFile.metadata.relPath))
this.mimeType = videoFile.mimeType
this.codec = videoFile.codec