diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-09 11:52:41 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-11-09 15:00:21 +0100 |
commit | 221ee1adc916684d4881d2a9c4c01954dcde986e (patch) | |
tree | f456a3f3e1fcc2d8dbd3cc6f0d72a4cb2cbbadc2 /server/lib/video-state.ts | |
parent | 4e29f4fe23b413cc8c55ac0d8373f36bcd60b47a (diff) | |
download | PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.gz PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.tar.zst PeerTube-221ee1adc916684d4881d2a9c4c01954dcde986e.zip |
Add transcoding fail message in client
Diffstat (limited to 'server/lib/video-state.ts')
-rw-r--r-- | server/lib/video-state.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts index 2260e90f5..0b51f5c6b 100644 --- a/server/lib/video-state.ts +++ b/server/lib/video-state.ts | |||
@@ -79,10 +79,8 @@ async function moveToExternalStorageState (video: MVideoFullLight, isNewVideo: b | |||
79 | } | 79 | } |
80 | } | 80 | } |
81 | 81 | ||
82 | function moveToFailedState (video: MVideoFullLight) { | 82 | function moveToFailedTranscodingState (video: MVideoFullLight) { |
83 | return sequelizeTypescript.transaction(async t => { | 83 | return video.setNewState(VideoState.TRANSCODING_FAILED, false, undefined) |
84 | await video.setNewState(VideoState.TRANSCODING_FAILED, false, t) | ||
85 | }) | ||
86 | } | 84 | } |
87 | 85 | ||
88 | // --------------------------------------------------------------------------- | 86 | // --------------------------------------------------------------------------- |
@@ -90,7 +88,7 @@ function moveToFailedState (video: MVideoFullLight) { | |||
90 | export { | 88 | export { |
91 | buildNextVideoState, | 89 | buildNextVideoState, |
92 | moveToExternalStorageState, | 90 | moveToExternalStorageState, |
93 | moveToFailedState, | 91 | moveToFailedTranscodingState, |
94 | moveToNextState | 92 | moveToNextState |
95 | } | 93 | } |
96 | 94 | ||