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 {
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())
+7
View File
@@ -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>): Channel {
group: params.group,
url: params.url,
tvg: params.tvg,
timeshift: params.timeshift,
} as Channel;
}