diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-17 11:24:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | 965c4b22d0e4d2f853501e844e6ebbb861bd389d (patch) | |
tree | 519574c83ea070968d9561d493bc16ac2e285090 /server/models/video | |
parent | 06a05d5f4784a7cbb27aa1188385b5679845dad8 (diff) | |
download | PeerTube-965c4b22d0e4d2f853501e844e6ebbb861bd389d.tar.gz PeerTube-965c4b22d0e4d2f853501e844e6ebbb861bd389d.tar.zst PeerTube-965c4b22d0e4d2f853501e844e6ebbb861bd389d.zip |
Use height instead of width to represent the video resolution
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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<VideoModel> { | |||
1402 | type: 'Link', | 1402 | type: 'Link', |
1403 | mimeType: VIDEO_EXT_MIMETYPE[file.extname], | 1403 | mimeType: VIDEO_EXT_MIMETYPE[file.extname], |
1404 | href: this.getVideoFileUrl(file, baseUrlHttp), | 1404 | href: this.getVideoFileUrl(file, baseUrlHttp), |
1405 | width: file.resolution, | 1405 | height: file.resolution, |
1406 | size: file.size, | 1406 | size: file.size, |
1407 | fps: file.fps | 1407 | fps: file.fps |
1408 | }) | 1408 | }) |
@@ -1411,14 +1411,14 @@ export class VideoModel extends Model<VideoModel> { | |||
1411 | type: 'Link', | 1411 | type: 'Link', |
1412 | mimeType: 'application/x-bittorrent', | 1412 | mimeType: 'application/x-bittorrent', |
1413 | href: this.getTorrentUrl(file, baseUrlHttp), | 1413 | href: this.getTorrentUrl(file, baseUrlHttp), |
1414 | width: file.resolution | 1414 | height: file.resolution |
1415 | }) | 1415 | }) |
1416 | 1416 | ||
1417 | url.push({ | 1417 | url.push({ |
1418 | type: 'Link', | 1418 | type: 'Link', |
1419 | mimeType: 'application/x-bittorrent;x-scheme-handler/magnet', | 1419 | mimeType: 'application/x-bittorrent;x-scheme-handler/magnet', |
1420 | href: this.generateMagnetUri(file, baseUrlHttp, baseUrlWs), | 1420 | href: this.generateMagnetUri(file, baseUrlHttp, baseUrlWs), |
1421 | width: file.resolution | 1421 | height: file.resolution |
1422 | }) | 1422 | }) |
1423 | } | 1423 | } |
1424 | 1424 | ||