From 5c0904fc664e3eb04ac75a9430c1297c2a14f853 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 Nov 2020 14:36:30 +0100 Subject: Cleanup lives on server restart --- client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts') diff --git a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts index b2a2cf240..67a9b0028 100644 --- a/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts +++ b/client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts @@ -1,5 +1,6 @@ import { Component, EventEmitter, Input, Output } from '@angular/core' import { ScreenService } from '@app/core' +import { VideoState } from '@shared/models' import { Video } from '../shared-main' @Component({ @@ -29,6 +30,10 @@ export class VideoThumbnailComponent { this.addedToWatchLaterText = $localize`Remove from watch later` } + isLiveEnded () { + return this.video.state.id === VideoState.LIVE_ENDED + } + getImageUrl () { if (!this.video) return '' -- cgit v1.2.3