1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

Async torrent creation

This commit is contained in:
Chocobozzz 2021-02-25 13:56:07 +01:00 committed by Chocobozzz
parent d7df188f23
commit d61893f723
5 changed files with 66 additions and 11 deletions

View file

@ -205,7 +205,7 @@ function videoFilesModelToFormattedJSON (
label: videoFile.resolution + 'p'
},
magnetUri: includeMagnet
magnetUri: includeMagnet && videoFile.torrentFilename
? generateMagnetUri(video, videoFile, trackerUrls)
: undefined,