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

Server: Fix video propagation with transcoding enabled

This commit is contained in:
Chocobozzz 2017-05-05 12:15:16 +02:00
parent fce897f326
commit 62326afb15
4 changed files with 26 additions and 13 deletions

View file

@ -379,6 +379,9 @@ function addVideo (req, res, videoFile, finalCallback) {
},
function sendToFriends (t, video, callback) {
// Let transcoding job send the video to friends because the videofile extension might change
if (constants.CONFIG.TRANSCODING.ENABLED === true) return callback(null, t)
video.toAddRemoteJSON(function (err, remoteVideo) {
if (err) return callback(err)