mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-12 03:56:15 -08:00
Merge branch 'pwa' of https://github.com/4gray/iptvnator into pwa
This commit is contained in:
commit
accc6adbbe
3 files changed
+14
-8
No files matched your search
@@ -48,9 +48,9 @@ export class AppComponent {
|
||||
commandsList = [
|
||||
new IpcCommand(VIEW_ADD_PLAYLIST, () => this.navigateToRoute('/')),
|
||||
new IpcCommand(VIEW_SETTINGS, () => this.navigateToRoute('/settings')),
|
||||
new IpcCommand(EPG_FETCH_DONE, () => this.onEpgFetchDone),
|
||||
new IpcCommand(EPG_ERROR, () => this.onEpgError),
|
||||
new IpcCommand(SHOW_WHATS_NEW, () => this.showWhatsNewDialog),
|
||||
new IpcCommand(EPG_FETCH_DONE, () => this.onEpgFetchDone()),
|
||||
new IpcCommand(EPG_ERROR, () => this.onEpgError()),
|
||||
new IpcCommand(SHOW_WHATS_NEW, () => this.showWhatsNewDialog()),
|
||||
];
|
||||
|
||||
/** Default language as fallback */
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { EntityState, EntityStore, StoreConfig } from '@datorama/akita';
|
||||
import * as moment from 'moment';
|
||||
import {
|
||||
CHANNEL_SET_USER_AGENT,
|
||||
EPG_GET_PROGRAM,
|
||||
PLAYLIST_UPDATE_FAVORITES,
|
||||
} from '../../../shared/ipc-commands';
|
||||
import { Channel } from './channel.model';
|
||||
import * as moment from 'moment';
|
||||
import { EpgProgram } from '../player/models/epg-program.model';
|
||||
import { DataService } from '../services/data.service';
|
||||
import { Channel } from './channel.model';
|
||||
|
||||
export interface ChannelState extends EntityState<Channel> {
|
||||
active: Channel;
|
||||
@@ -65,7 +65,7 @@ export class ChannelStore extends EntityStore<ChannelState> {
|
||||
this.update((store) => {
|
||||
if (store.epgAvailable) {
|
||||
this.electronService.sendIpcEvent(EPG_GET_PROGRAM, {
|
||||
channelName: channel.name,
|
||||
channel,
|
||||
});
|
||||
if (channel.http['user-agent']) {
|
||||
this.electronService.sendIpcEvent(CHANNEL_SET_USER_AGENT, {
|
||||
|
||||
Reference in new issue
Block a user