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:
parent
fce897f326
commit
62326afb15
4 changed files with 26 additions and 13 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue