aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/job.model.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/models/server/job.model.ts')
-rw-r--r--shared/models/server/job.model.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts
index 57d61c480..61010e5a8 100644
--- a/shared/models/server/job.model.ts
+++ b/shared/models/server/job.model.ts
@@ -70,8 +70,11 @@ export type VideoFileImportPayload = {
70 filePath: string 70 filePath: string
71} 71}
72 72
73export type VideoImportTorrentPayloadType = 'magnet-uri' | 'torrent-file'
74export type VideoImportYoutubeDLPayloadType = 'youtube-dl'
75
73export type VideoImportYoutubeDLPayload = { 76export type VideoImportYoutubeDLPayload = {
74 type: 'youtube-dl' 77 type: VideoImportYoutubeDLPayloadType
75 videoImportId: number 78 videoImportId: number
76 79
77 generateThumbnail: boolean 80 generateThumbnail: boolean
@@ -80,7 +83,7 @@ export type VideoImportYoutubeDLPayload = {
80 fileExt?: string 83 fileExt?: string
81} 84}
82export type VideoImportTorrentPayload = { 85export type VideoImportTorrentPayload = {
83 type: 'magnet-uri' | 'torrent-file' 86 type: VideoImportTorrentPayloadType
84 videoImportId: number 87 videoImportId: number
85} 88}
86export type VideoImportPayload = VideoImportYoutubeDLPayload | VideoImportTorrentPayload 89export type VideoImportPayload = VideoImportYoutubeDLPayload | VideoImportTorrentPayload