mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
refactor: workaround to resolve an issue with playlist interface dependency
This commit is contained in:
3 files changed
+33
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user