diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
commit | 24516aa26a6753517b379cf7b5104c1a24eccad6 (patch) | |
tree | a94b561faa63238f8ac69848f6b0379f0ade08a2 /server/models/video | |
parent | 3b01f4c0ac764ecb70efaadfd939ca868c28769c (diff) | |
download | PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.gz PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.zst PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.zip |
Refactor transcoding job handlers
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 3db6549ae..2bfa704ec 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -1735,6 +1735,7 @@ export class VideoModel extends Model { | |||
1735 | } | 1735 | } |
1736 | 1736 | ||
1737 | getQualityFileBy<T extends MVideoWithFile> (this: T, fun: (files: MVideoFile[], it: (file: MVideoFile) => number) => MVideoFile) { | 1737 | getQualityFileBy<T extends MVideoWithFile> (this: T, fun: (files: MVideoFile[], it: (file: MVideoFile) => number) => MVideoFile) { |
1738 | // We first transcode to WebTorrent format, so try this array first | ||
1738 | if (Array.isArray(this.VideoFiles) && this.VideoFiles.length !== 0) { | 1739 | if (Array.isArray(this.VideoFiles) && this.VideoFiles.length !== 0) { |
1739 | const file = fun(this.VideoFiles, file => file.resolution) | 1740 | const file = fun(this.VideoFiles, file => file.resolution) |
1740 | 1741 | ||