mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 21:56:18 -08:00
fix(downloads): preserve scoped episode ownership
This commit is contained in:
1 parent
a667bfbe05
commit
33ca53e86d
20 files changed
+395
-57
No files matched your search
@@ -139,12 +139,22 @@ export type ElectronBridgeDownloadStatus =
|
||||
(typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_STATUSES];
|
||||
|
||||
export const ELECTRON_BRIDGE_DOWNLOAD_START_REASONS = {
|
||||
AlreadyDownloaded: 'already-downloaded',
|
||||
AlreadyInProgress: 'already-in-progress',
|
||||
} as const;
|
||||
|
||||
export type ElectronBridgeDownloadStartReason =
|
||||
(typeof ELECTRON_BRIDGE_DOWNLOAD_START_REASONS)[keyof typeof ELECTRON_BRIDGE_DOWNLOAD_START_REASONS];
|
||||
|
||||
export const ELECTRON_BRIDGE_EPISODE_IDENTITY_SCOPES = {
|
||||
StalkerEmbeddedVod: 'stalker-embedded-vod',
|
||||
StalkerLazyVod: 'stalker-lazy-vod',
|
||||
StalkerRegularSeries: 'stalker-regular-series',
|
||||
} as const;
|
||||
|
||||
export type ElectronBridgeEpisodeIdentityScope =
|
||||
(typeof ELECTRON_BRIDGE_EPISODE_IDENTITY_SCOPES)[keyof typeof ELECTRON_BRIDGE_EPISODE_IDENTITY_SCOPES];
|
||||
|
||||
export type ElectronDownloadFileAvailability =
|
||||
'available' | 'missing' | 'not-applicable';
|
||||
|
||||
@@ -541,6 +551,7 @@ export interface ElectronBridgeDownloadStartPayload {
|
||||
seriesXtreamId?: number;
|
||||
seasonNumber?: number;
|
||||
episodeNumber?: number;
|
||||
episodeIdentityScope?: ElectronBridgeEpisodeIdentityScope;
|
||||
playlistName?: string;
|
||||
playlistType?: ElectronBridgePlaylistType;
|
||||
serverUrl?: string;
|
||||
@@ -565,6 +576,7 @@ export interface ElectronDownloadItem {
|
||||
seriesXtreamId?: number;
|
||||
seasonNumber?: number;
|
||||
episodeNumber?: number;
|
||||
episodeIdentityScope?: ElectronBridgeEpisodeIdentityScope | null;
|
||||
title: string;
|
||||
url: string;
|
||||
fileName?: string;
|
||||
|
||||
Reference in new issue
Block a user