aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-08 14:09:09 +0100
committerChocobozzz <me@florianbigard.com>2018-03-08 14:09:09 +0100
commitb0ef17828c41dd40652f566033bf9824eccdb636 (patch)
tree203b0db80bcc3b83b37520b3f3ac388a721b539f /server
parent5e4b6992ab818238758a9919f4c5a288398861b6 (diff)
downloadPeerTube-b0ef17828c41dd40652f566033bf9824eccdb636.tar.gz
PeerTube-b0ef17828c41dd40652f566033bf9824eccdb636.tar.zst
PeerTube-b0ef17828c41dd40652f566033bf9824eccdb636.zip
Do not destroy the video if transcoding fails
Diffstat (limited to 'server')
-rw-r--r--server/models/video/video.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index f6a21814c..1b9d68073 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -1138,10 +1138,10 @@ export class VideoModel extends Model<VideoModel> {
1138 outputPath: videoOutputPath 1138 outputPath: videoOutputPath
1139 } 1139 }
1140 1140
1141 try { 1141 // Could be very long!
1142 // Could be very long! 1142 await transcode(transcodeOptions)
1143 await transcode(transcodeOptions)
1144 1143
1144 try {
1145 await unlinkPromise(videoInputPath) 1145 await unlinkPromise(videoInputPath)
1146 1146
1147 // Important to do this before getVideoFilename() to take in account the new file extension 1147 // Important to do this before getVideoFilename() to take in account the new file extension