aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/formatter/video-format-utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/models/video/formatter/video-format-utils.ts b/server/models/video/formatter/video-format-utils.ts
index fd02f8c64..e1b0eb610 100644
--- a/server/models/video/formatter/video-format-utils.ts
+++ b/server/models/video/formatter/video-format-utils.ts
@@ -256,6 +256,8 @@ function videoFilesModelToFormattedJSON (
256 .sort(sortByResolutionDesc) 256 .sort(sortByResolutionDesc)
257 .map(videoFile => { 257 .map(videoFile => {
258 return { 258 return {
259 id: videoFile.id,
260
259 resolution: { 261 resolution: {
260 id: videoFile.resolution, 262 id: videoFile.resolution,
261 label: videoFile.resolution === 0 ? 'Audio' : `${videoFile.resolution}p` 263 label: videoFile.resolution === 0 ? 'Audio' : `${videoFile.resolution}p`