diff options
Diffstat (limited to 'server/models')
-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 | ||