Skip to content

Commit

Permalink
feat: support of timeshift and catchup attributes in playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
4gray committed May 21, 2021
1 parent cf6b5b6 commit ced16a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/player/components/epg-list/epg-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
7 changes: 7 additions & 0 deletions src/app/state/channel.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ export interface Channel {
rec: string;
};
epgParams?: string;
timeshift?: string;
catchup?: {
type?: string;
source?: string;
days?: string;
};
}

/**
Expand All @@ -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;
}

0 comments on commit ced16a8

Please sign in to comment.