mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
feat: support of timeshift and catchup attributes in playlists
This commit is contained in:
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())
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user