From 965c4b22d0e4d2f853501e844e6ebbb861bd389d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 Aug 2018 11:24:36 +0200 Subject: Use height instead of width to represent the video resolution --- server/models/video/video.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/models/video') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 5db718061..25a1cd177 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1402,7 +1402,7 @@ export class VideoModel extends Model { type: 'Link', mimeType: VIDEO_EXT_MIMETYPE[file.extname], href: this.getVideoFileUrl(file, baseUrlHttp), - width: file.resolution, + height: file.resolution, size: file.size, fps: file.fps }) @@ -1411,14 +1411,14 @@ export class VideoModel extends Model { type: 'Link', mimeType: 'application/x-bittorrent', href: this.getTorrentUrl(file, baseUrlHttp), - width: file.resolution + height: file.resolution }) url.push({ type: 'Link', mimeType: 'application/x-bittorrent;x-scheme-handler/magnet', href: this.generateMagnetUri(file, baseUrlHttp, baseUrlWs), - width: file.resolution + height: file.resolution }) } -- cgit v1.2.3