Try to fix subscriptions inconsistencies

This commit is contained in:
Chocobozzz 2020-01-08 15:11:38 +01:00
parent 440d39c52d
commit e612209767
No known key found for this signature in database
GPG key ID: 583A612D890159BE
12 changed files with 37 additions and 28 deletions

View file

@ -206,7 +206,7 @@ async function generateHlsPlaylist (video: MVideoWithFile, resolution: VideoReso
await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile)
await newVideoFile.save()
videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles') as VideoFileModel[]
videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles')
video.setHLSPlaylist(videoStreamingPlaylist)