feat: support of timeshift and catchup attributes in playlists

This commit is contained in:
4gray committed 2021-05-21 18:15:04 +02:00
1 parent cf6b5b691a
commit ced16a88b2
2 files changed
+13 -1

No files matched your search

@@ -74,7 +74,12 @@ export class EpgListComponent {
*/ */
ngOnInit(): void { ngOnInit(): void {
this.timeshiftUntil$ = this.channelQuery this.timeshiftUntil$ = this.channelQuery
.select((store) => store.active.tvg.rec) .select(
(store) =>
store.active.tvg.rec ||
store.active.timeshift ||
store.active.catchup?.days
)
.pipe( .pipe(
map((value) => map((value) =>
moment(Date.now()) moment(Date.now())
+7
View File
@@ -19,6 +19,12 @@ export interface Channel {
rec: string; rec: string;
}; };
epgParams?: string; epgParams?: string;
timeshift?: string;
catchup?: {
type?: string;
source?: string;
days?: string;
};
} }
/** /**
@@ -32,5 +38,6 @@ export function createChannel(params: Partial<Channel>): Channel {
group: params.group, group: params.group,
url: params.url, url: params.url,
tvg: params.tvg, tvg: params.tvg,
timeshift: params.timeshift,
} as Channel; } as Channel;
} }