Fix duplicate HLS resolution in master playlist
This commit is contained in:
parent
52201311e1
commit
49c3bf6fa2
3 changed files with 4 additions and 6 deletions
|
@ -205,10 +205,8 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso
|
|||
|
||||
await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile)
|
||||
|
||||
const updatedVideoFile = await newVideoFile.save()
|
||||
|
||||
await newVideoFile.save()
|
||||
videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[]
|
||||
videoStreamingPlaylist.VideoFiles.push(updatedVideoFile)
|
||||
|
||||
video.setHLSPlaylist(videoStreamingPlaylist)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue