aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-format-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video/video-format-utils.ts')
-rw-r--r--server/models/video/video-format-utils.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/models/video/video-format-utils.ts b/server/models/video/video-format-utils.ts
index 21f0e0a68..365c9581e 100644
--- a/server/models/video/video-format-utils.ts
+++ b/server/models/video/video-format-utils.ts
@@ -181,6 +181,8 @@ function videoFilesModelToFormattedJSON (
181 baseUrlWs: string, 181 baseUrlWs: string,
182 videoFiles: MVideoFileRedundanciesOpt[] 182 videoFiles: MVideoFileRedundanciesOpt[]
183): VideoFile[] { 183): VideoFile[] {
184 const video = extractVideo(model)
185
184 return videoFiles 186 return videoFiles
185 .map(videoFile => { 187 .map(videoFile => {
186 return { 188 return {
@@ -195,7 +197,7 @@ function videoFilesModelToFormattedJSON (
195 torrentDownloadUrl: model.getTorrentDownloadUrl(videoFile, baseUrlHttp), 197 torrentDownloadUrl: model.getTorrentDownloadUrl(videoFile, baseUrlHttp),
196 fileUrl: model.getVideoFileUrl(videoFile, baseUrlHttp), 198 fileUrl: model.getVideoFileUrl(videoFile, baseUrlHttp),
197 fileDownloadUrl: model.getVideoFileDownloadUrl(videoFile, baseUrlHttp), 199 fileDownloadUrl: model.getVideoFileDownloadUrl(videoFile, baseUrlHttp),
198 metadataUrl: videoFile.metadataUrl // only send the metadataUrl and not the metadata over the wire 200 metadataUrl: video.getVideoFileMetadataUrl(videoFile, baseUrlHttp)
199 } as VideoFile 201 } as VideoFile
200 }) 202 })
201 .sort((a, b) => { 203 .sort((a, b) => {