diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-15 14:08:16 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-16 10:36:44 +0100 |
commit | 6302d599cdf98b5a5363a2a1dcdc266447950191 (patch) | |
tree | b7dc6dc0f08f0fb8a20720242c9c0a71afeeaa3f /server/types/models/video | |
parent | a8b1b40485145ac1eae513a661d7dd6e0986ce96 (diff) | |
download | PeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.tar.gz PeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.tar.zst PeerTube-6302d599cdf98b5a5363a2a1dcdc266447950191.zip |
Generate a name for caption files
Diffstat (limited to 'server/types/models/video')
-rw-r--r-- | server/types/models/video/video-caption.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/types/models/video/video-caption.ts b/server/types/models/video/video-caption.ts index ab80ff830..1f761a866 100644 --- a/server/types/models/video/video-caption.ts +++ b/server/types/models/video/video-caption.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { PickWith } from '@shared/core-utils' | ||
1 | import { VideoCaptionModel } from '../../../models/video/video-caption' | 2 | import { VideoCaptionModel } from '../../../models/video/video-caption' |
2 | import { FunctionProperties, PickWith } from '@shared/core-utils' | ||
3 | import { MVideo, MVideoUUID } from './video' | 3 | import { MVideo, MVideoUUID } from './video' |
4 | 4 | ||
5 | type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M> | 5 | type Use<K extends keyof VideoCaptionModel, M> = PickWith<VideoCaptionModel, K, M> |
@@ -22,6 +22,6 @@ export type MVideoCaptionVideo = | |||
22 | // Format for API or AP object | 22 | // Format for API or AP object |
23 | 23 | ||
24 | export type MVideoCaptionFormattable = | 24 | export type MVideoCaptionFormattable = |
25 | FunctionProperties<MVideoCaption> & | 25 | MVideoCaption & |
26 | Pick<MVideoCaption, 'language'> & | 26 | Pick<MVideoCaption, 'language'> & |
27 | Use<'Video', MVideoUUID> | 27 | Use<'Video', MVideoUUID> |