]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-video-miniature/video-miniature.component.ts
Add ability to remove hls/webtorrent files
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-video-miniature / video-miniature.component.ts
index 69f00fb1017d79d844b8e41ba81338a7551dafcf..f387c38c2d163dd61cb8ecf2d853fe2c0baabc31 100644 (file)
@@ -101,11 +101,15 @@ export class VideoMiniatureComponent implements OnInit {
   ) {}
 
   get authorAccount () {
-    return this.serverConfig.client.videos.miniature.showAuthorDisplayName ? this.video.account.displayName : this.video.byAccount
+    return this.serverConfig.client.videos.miniature.preferAuthorDisplayName
+      ? this.video.account.displayName
+      : this.video.byAccount
   }
 
   get authorChannel () {
-    return this.serverConfig.client.videos.miniature.showAuthorDisplayName ? this.video.channel.displayName : this.video.byVideoChannel
+    return this.serverConfig.client.videos.miniature.preferAuthorDisplayName
+      ? this.video.channel.displayName
+      : this.video.byVideoChannel
   }
 
   get isVideoBlur () {
@@ -171,6 +175,10 @@ export class VideoMiniatureComponent implements OnInit {
       return $localize`Publication scheduled on ` + updateAt
     }
 
+    if (video.state.id === VideoState.TRANSCODING_FAILED) {
+      return $localize`Transcoding failed`
+    }
+
     if (video.state.id === VideoState.TO_TRANSCODE && video.waitTranscoding === true) {
       return $localize`Waiting transcoding`
     }