From a8462c8e3a61f4f7314fe18c0c10cc2946c254d1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Apr 2018 16:15:51 +0200 Subject: Automatic resolution according to user bandwidth V1 --- server/models/video/video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 2a1226f6d..8b58b393b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -28,7 +28,7 @@ import { } from 'sequelize-typescript' import { VideoPrivacy, VideoResolution } from '../../../shared' import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' -import { Video, VideoDetails } from '../../../shared/models/videos' +import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' import { VideoFilter } from '../../../shared/models/videos/video-query.type' import { activityPubCollection } from '../../helpers/activitypub' import { @@ -1020,7 +1020,7 @@ export class VideoModel extends Model { size: videoFile.size, torrentUrl: this.getTorrentUrl(videoFile, baseUrlHttp), fileUrl: this.getVideoFileUrl(videoFile, baseUrlHttp) - } + } as VideoFile }) .sort((a, b) => { if (a.resolution.id < b.resolution.id) return 1 -- cgit v1.2.3