mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Cleanup
This commit is contained in:
parent
f66db4d5c8
commit
8efc27bf14
13 changed files with 23 additions and 21 deletions
|
@ -254,7 +254,7 @@ async function onWebTorrentVideoFileTranscoding (
|
|||
videoFile.fps = fps
|
||||
videoFile.metadata = metadata
|
||||
|
||||
await createTorrentAndSetInfoHash(video, video, videoFile)
|
||||
await createTorrentAndSetInfoHash(video, videoFile)
|
||||
|
||||
await VideoFileModel.customUpsert(videoFile, 'video', undefined)
|
||||
video.VideoFiles = await video.$get('VideoFiles')
|
||||
|
@ -350,7 +350,7 @@ async function generateHlsPlaylistCommon (options: {
|
|||
newVideoFile.fps = await getVideoFileFPS(videoFilePath)
|
||||
newVideoFile.metadata = await getMetadataFromFile(videoFilePath)
|
||||
|
||||
await createTorrentAndSetInfoHash(videoStreamingPlaylist, video, newVideoFile)
|
||||
await createTorrentAndSetInfoHash(videoStreamingPlaylist, newVideoFile)
|
||||
|
||||
await VideoFileModel.customUpsert(newVideoFile, 'streaming-playlist', undefined)
|
||||
videoStreamingPlaylist.VideoFiles = await videoStreamingPlaylist.$get('VideoFiles')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue