From 12d84abeca4917d2f1e3f308010bfcd56d37cb7c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 29 Jul 2022 11:32:46 +0200 Subject: Include video file id in API --- server/models/video/formatter/video-format-utils.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/models') 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 ( .sort(sortByResolutionDesc) .map(videoFile => { return { + id: videoFile.id, + resolution: { id: videoFile.resolution, label: videoFile.resolution === 0 ? 'Audio' : `${videoFile.resolution}p` -- cgit v1.2.3