refactor: workaround to resolve an issue with playlist interface dependency

This commit is contained in:
4gray committed 2021-05-24 22:49:54 +02:00
1 parent 94acd94221
commit 6cd6721ed8
3 files changed
+33 -4

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ epg-worker.js
ipc-commands.js
main.js
menu.js
playlist.interface.js
src/**/*.js
!src/karma.conf.js
*.js.map
+1 -4
View File
@@ -3,10 +3,7 @@ import { app, BrowserWindow, ipcMain } from 'electron';
import { parse } from 'iptv-playlist-parser';
import axios from 'axios';
import { guid } from '@datorama/akita';
import {
Playlist,
PlaylistUpdateState,
} from './src/app/home/playlist.interface';
import { Playlist, PlaylistUpdateState } from './playlist.interface';
import Nedb, { Cursor } from 'nedb-promises-ts';
import {
EPG_ERROR,
+31
View File
@@ -0,0 +1,31 @@
import { ID } from '@datorama/akita';
/**
* An interface that describe the possible states of the playlist update/refresh process
*/
export enum PlaylistUpdateState {
UPDATED,
IN_PROGRESS,
NOT_UPDATED,
}
/**
* Describes playlist interface
*/
export interface Playlist {
id: ID;
_id: string;
title: string;
filename: string;
playlist: any;
importDate: string;
lastUsage: string;
favorites: string[];
count: number;
url?: string;
userAgent?: string;
filePath?: string;
autoRefresh: boolean;
updateDate?: number;
updateState?: PlaylistUpdateState;
}