From dbd9fb44ddd880622265097bd7baf4dd71ea0861 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Dec 2021 11:09:31 +0100 Subject: Don't stuck state when move transcoding job failed --- .../+video-watch/shared/information/video-alert.component.html | 4 ++++ .../+videos/+video-watch/shared/information/video-alert.component.ts | 4 ++++ .../app/shared/shared-video-miniature/video-miniature.component.ts | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'client/src/app') diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html index 6e5d0bcad..0c4d46714 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.html @@ -2,6 +2,10 @@ Transcoding failed, this video may not work properly. +
+ Move to external storage failed, this video may not work properly. +
+
The video is being imported, it will be available when the import is finished.
diff --git a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts index addea53c0..a3d3fa6fb 100644 --- a/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts +++ b/client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts @@ -18,6 +18,10 @@ export class VideoAlertComponent { return this.video && this.video.state.id === VideoState.TRANSCODING_FAILED } + isVideoMoveToObjectStorageFailed () { + return this.video && this.video.state.id === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED + } + isVideoToImport () { return this.video && this.video.state.id === VideoState.TO_IMPORT } diff --git a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts index f387c38c2..847e401ed 100644 --- a/client/src/app/shared/shared-video-miniature/video-miniature.component.ts +++ b/client/src/app/shared/shared-video-miniature/video-miniature.component.ts @@ -179,6 +179,10 @@ export class VideoMiniatureComponent implements OnInit { return $localize`Transcoding failed` } + if (video.state.id === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE_FAILED) { + return $localize`Move to external storage failed` + } + if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) { return $localize`Waiting transcoding` } -- cgit v1.2.3