diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-26 08:37:26 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:28:14 +0200 |
commit | 583eb04b541175035d6d452ca626a96ebf2b7437 (patch) | |
tree | 114ba0a7004b4b2a7fc77444ef5fcb73414c6e93 /shared/models/videos/video-file-metadata.ts | |
parent | 4504f09f6e85f09b0489debb547a17209d7176ea (diff) | |
download | PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.gz PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.tar.zst PeerTube-583eb04b541175035d6d452ca626a96ebf2b7437.zip |
Upgrade to angular 10
Diffstat (limited to 'shared/models/videos/video-file-metadata.ts')
-rw-r--r-- | shared/models/videos/video-file-metadata.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/shared/models/videos/video-file-metadata.ts b/shared/models/videos/video-file-metadata.ts index 010bf7cf5..8f527c0a7 100644 --- a/shared/models/videos/video-file-metadata.ts +++ b/shared/models/videos/video-file-metadata.ts | |||
@@ -1,14 +1,9 @@ | |||
1 | import { FfprobeData } from 'fluent-ffmpeg' | 1 | export class VideoFileMetadata { |
2 | import { DeepOmit } from '../../core-utils' | ||
3 | |||
4 | export type VideoFileMetadataModel = DeepOmit<FfprobeData, 'filename'> | ||
5 | |||
6 | export class VideoFileMetadata implements VideoFileMetadataModel { | ||
7 | streams: { [x: string]: any, [x: number]: any }[] | 2 | streams: { [x: string]: any, [x: number]: any }[] |
8 | format: { [x: string]: any, [x: number]: any } | 3 | format: { [x: string]: any, [x: number]: any } |
9 | chapters: any[] | 4 | chapters: any[] |
10 | 5 | ||
11 | constructor (hash: Partial<VideoFileMetadataModel>) { | 6 | constructor (hash: { chapters: any[], format: any, streams: any[] }) { |
12 | this.chapters = hash.chapters | 7 | this.chapters = hash.chapters |
13 | this.format = hash.format | 8 | this.format = hash.format |
14 | this.streams = hash.streams | 9 | this.streams = hash.streams |