mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
feat(downloads): derive completed file availability
This commit is contained in:
1 parent
263f0f3d52
commit
bd61426d8e
7 files changed
+326
-23
No files matched your search
@@ -137,6 +137,11 @@ export const ELECTRON_BRIDGE_DOWNLOAD_STATUSES = {
|
||||
export type ElectronBridgeDownloadStatus =
|
||||
(typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES];
|
||||
|
||||
export type ElectronDownloadFileAvailability =
|
||||
| 'available'
|
||||
| 'missing'
|
||||
| 'not-applicable';
|
||||
|
||||
export const ELECTRON_BRIDGE_APP_UPDATE_STATUSES = {
|
||||
Unsupported: 'unsupported',
|
||||
Idle: 'idle',
|
||||
@@ -544,6 +549,7 @@ export interface ElectronDownloadItem {
|
||||
filePath?: string;
|
||||
posterUrl?: string;
|
||||
status: ElectronBridgeDownloadStatus;
|
||||
fileAvailability: ElectronDownloadFileAvailability;
|
||||
bytesDownloaded?: number;
|
||||
totalBytes?: number;
|
||||
errorMessage?: string;
|
||||
|
||||
Reference in new issue
Block a user