diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:36:48 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-26 16:57:51 +0100 |
commit | 49c3bf6fa25afb49c8a27937147043c6e4ce95c3 (patch) | |
tree | c4e126c19ee2dab4b7c8c66ec913618549ca9009 /server/lib/video-transcoding.ts | |
parent | 52201311e1973a12960466232d4dec861e8258ee (diff) | |
download | PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.tar.gz PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.tar.zst PeerTube-49c3bf6fa25afb49c8a27937147043c6e4ce95c3.zip |
Fix duplicate HLS resolution in master playlist
Diffstat (limited to 'server/lib/video-transcoding.ts')
-rw-r--r-- | server/lib/video-transcoding.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/lib/video-transcoding.ts b/server/lib/video-transcoding.ts index ab5200936..03bc21559 100644 --- a/server/lib/video-transcoding.ts +++ b/server/lib/video-transcoding.ts | |||
@@ -205,10 +205,8 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso | |||
205 | 205 | ||
206 | await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile) | 206 | await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile) |
207 | 207 | ||
208 | const updatedVideoFile = await newVideoFile.save() | 208 | await newVideoFile.save() |
209 | |||
210 | videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[] | 209 | videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[] |
211 | videoStreamingPlaylist.VideoFiles.push(updatedVideoFile) | ||
212 | 210 | ||
213 | video.setHLSPlaylist(videoStreamingPlaylist) | 211 | video.setHLSPlaylist(videoStreamingPlaylist) |
214 | 212 | ||