diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-16 16:25:53 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-18 13:38:09 +0100 |
commit | 90a8bd305de4153ec21137a73ff482dcc2e3e19b (patch) | |
tree | 2e35b5504ec11bc51579c92a70c77ed3d5ace816 /shared/models/videos | |
parent | 684cdacbbd775b5f404dd7b373e02dd21baf5ff0 (diff) | |
download | PeerTube-90a8bd305de4153ec21137a73ff482dcc2e3e19b.tar.gz PeerTube-90a8bd305de4153ec21137a73ff482dcc2e3e19b.tar.zst PeerTube-90a8bd305de4153ec21137a73ff482dcc2e3e19b.zip |
Dissociate video file names and video uuid
Diffstat (limited to 'shared/models/videos')
-rw-r--r-- | shared/models/videos/video-file.model.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shared/models/videos/video-file.model.ts b/shared/models/videos/video-file.model.ts index e9839229d..f3d93f0ed 100644 --- a/shared/models/videos/video-file.model.ts +++ b/shared/models/videos/video-file.model.ts | |||
@@ -3,14 +3,20 @@ import { VideoFileMetadata } from './video-file-metadata' | |||
3 | import { VideoResolution } from './video-resolution.enum' | 3 | import { VideoResolution } from './video-resolution.enum' |
4 | 4 | ||
5 | export interface VideoFile { | 5 | export interface VideoFile { |
6 | magnetUri: string | ||
7 | resolution: VideoConstant<VideoResolution> | 6 | resolution: VideoConstant<VideoResolution> |
8 | size: number // Bytes | 7 | size: number // Bytes |
8 | |||
9 | torrentUrl: string | 9 | torrentUrl: string |
10 | torrentDownloadUrl: string | 10 | torrentDownloadUrl: string |
11 | |||
11 | fileUrl: string | 12 | fileUrl: string |
12 | fileDownloadUrl: string | 13 | fileDownloadUrl: string |
14 | |||
13 | fps: number | 15 | fps: number |
16 | |||
14 | metadata?: VideoFileMetadata | 17 | metadata?: VideoFileMetadata |
15 | metadataUrl?: string | 18 | metadataUrl?: string |
19 | |||
20 | // FIXME: deprecated in 3.2 | ||
21 | magnetUri: string | ||
16 | } | 22 | } |