From ced16a88b25c9cb139d3a70ed1194a977cfb07f1 Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 21 May 2021 18:15:04 +0200 Subject: [PATCH] feat: support of timeshift and catchup attributes in playlists --- src/app/player/components/epg-list/epg-list.component.ts | 7 ++++++- src/app/state/channel.model.ts | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/player/components/epg-list/epg-list.component.ts b/src/app/player/components/epg-list/epg-list.component.ts index 852bcc848..b8d4bd76e 100644 --- a/src/app/player/components/epg-list/epg-list.component.ts +++ b/src/app/player/components/epg-list/epg-list.component.ts @@ -74,7 +74,12 @@ export class EpgListComponent { */ ngOnInit(): void { this.timeshiftUntil$ = this.channelQuery - .select((store) => store.active.tvg.rec) + .select( + (store) => + store.active.tvg.rec || + store.active.timeshift || + store.active.catchup?.days + ) .pipe( map((value) => moment(Date.now()) diff --git a/src/app/state/channel.model.ts b/src/app/state/channel.model.ts index 4754191cc..cecf4649b 100755 --- a/src/app/state/channel.model.ts +++ b/src/app/state/channel.model.ts @@ -19,6 +19,12 @@ export interface Channel { rec: string; }; epgParams?: string; + timeshift?: string; + catchup?: { + type?: string; + source?: string; + days?: string; + }; } /** @@ -32,5 +38,6 @@ export function createChannel(params: Partial): Channel { group: params.group, url: params.url, tvg: params.tvg, + timeshift: params.timeshift, } as Channel; }