await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile)
- await newVideoFile.save()
+ await VideoFileModel.customUpsert(newVideoFile, 'streaming-playlist', undefined)
videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles')
video.setHLSPlaylist(videoStreamingPlaylist)