Proyecto App Windows

This commit is contained in:
2026-05-03 23:36:48 +02:00
commit 96793b2e1e
1248 changed files with 189750 additions and 0 deletions
@@ -0,0 +1,22 @@
import { Channel } from './channel.interface';
/**
* Creates new channel object based on the given fields
* @param params partial channel object
*/
export function createChannel(params: Partial<Channel>): Channel {
return {
id: params?.id || params.url,
name: params.name,
group: params.group,
url: params.url,
tvg: params.tvg,
timeshift: params.timeshift,
catchup: params.catchup,
http: params.http,
radio: params.radio,
} as Channel;
}
/** Possible sidebar view options */
export type SidebarView = 'CHANNELS' | 'PLAYLISTS';