mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 13:46:16 -08:00
feat(downloads): define episode queue identity
This commit is contained in:
1 parent
76cbb055b3
commit
907e5f5a28
7 files changed
+236
-5
No files matched your search
@@ -138,6 +138,13 @@ export const ELECTRON_BRIDGE_DOWNLOAD_STATUSES = {
|
||||
export type ElectronBridgeDownloadStatus =
|
||||
(typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES];
|
||||
|
||||
export const ELECTRON_BRIDGE_DOWNLOAD_START_REASONS = {
|
||||
AlreadyInProgress: 'already-in-progress',
|
||||
} as const;
|
||||
|
||||
export type ElectronBridgeDownloadStartReason =
|
||||
(typeof ELECTRON_BRIDGE_DOWNLOAD_START_REASONS)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_START_REASONS];
|
||||
|
||||
export type ElectronDownloadFileAvailability =
|
||||
'available' | 'missing' | 'not-applicable';
|
||||
|
||||
@@ -532,6 +539,7 @@ export interface ElectronBridgeDownloadStartPayload {
|
||||
|
||||
export interface ElectronBridgeDownloadStartResult extends ElectronBridgeErrorResult {
|
||||
id?: number;
|
||||
reason?: ElectronBridgeDownloadStartReason;
|
||||
}
|
||||
|
||||
export interface ElectronBridgeDownloadRedownloadResult extends ElectronBridgeErrorResult {
|
||||
|
||||
Reference in new issue
Block a user