diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-30 11:53:38 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-30 11:53:38 +0100 |
commit | ca6d36227a9273f616a462d3aad6a721ab5dd627 (patch) | |
tree | a1610578e719ddb2c58199f06dd4eae436d25c0a /server/typings/models/video | |
parent | 215304eaa06020f27152108567c6a9de16b220d3 (diff) | |
download | PeerTube-ca6d36227a9273f616a462d3aad6a721ab5dd627.tar.gz PeerTube-ca6d36227a9273f616a462d3aad6a721ab5dd627.tar.zst PeerTube-ca6d36227a9273f616a462d3aad6a721ab5dd627.zip |
Add url field in caption and use it for thumbnails
Diffstat (limited to 'server/typings/models/video')
-rw-r--r-- | server/typings/models/video/video-caption.ts | 1 | ||||
-rw-r--r-- | server/typings/models/video/video.ts | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/server/typings/models/video/video-caption.ts b/server/typings/models/video/video-caption.ts index ffa56f544..eeddedb40 100644 --- a/server/typings/models/video/video-caption.ts +++ b/server/typings/models/video/video-caption.ts | |||
@@ -11,6 +11,7 @@ export type MVideoCaption = Omit<VideoCaptionModel, 'Video'> | |||
11 | // ############################################################################ | 11 | // ############################################################################ |
12 | 12 | ||
13 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> | 13 | export type MVideoCaptionLanguage = Pick<MVideoCaption, 'language'> |
14 | export type MVideoCaptionLanguageUrl = Pick<MVideoCaption, 'language' | 'fileUrl' | 'getFileUrl'> | ||
14 | 15 | ||
15 | export type MVideoCaptionVideo = MVideoCaption & | 16 | export type MVideoCaptionVideo = MVideoCaption & |
16 | Use<'Video', Pick<MVideo, 'id' | 'remote' | 'uuid'>> | 17 | Use<'Video', Pick<MVideo, 'id' | 'remote' | 'uuid'>> |
diff --git a/server/typings/models/video/video.ts b/server/typings/models/video/video.ts index bcc5e5028..82d76f40c 100644 --- a/server/typings/models/video/video.ts +++ b/server/typings/models/video/video.ts | |||
@@ -9,7 +9,7 @@ import { | |||
9 | MChannelUserId | 9 | MChannelUserId |
10 | } from './video-channels' | 10 | } from './video-channels' |
11 | import { MTag } from './tag' | 11 | import { MTag } from './tag' |
12 | import { MVideoCaptionLanguage } from './video-caption' | 12 | import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' |
13 | import { | 13 | import { |
14 | MStreamingPlaylistFiles, | 14 | MStreamingPlaylistFiles, |
15 | MStreamingPlaylistRedundancies, | 15 | MStreamingPlaylistRedundancies, |
@@ -140,7 +140,7 @@ export type MVideoAP = MVideo & | |||
140 | Use<'Tags', MTag[]> & | 140 | Use<'Tags', MTag[]> & |
141 | Use<'VideoChannel', MChannelAccountLight> & | 141 | Use<'VideoChannel', MChannelAccountLight> & |
142 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & | 142 | Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & |
143 | Use<'VideoCaptions', MVideoCaptionLanguage[]> & | 143 | Use<'VideoCaptions', MVideoCaptionLanguageUrl[]> & |
144 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & | 144 | Use<'VideoBlacklist', MVideoBlacklistUnfederated> & |
145 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & | 145 | Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & |
146 | Use<'Thumbnails', MThumbnail[]> | 146 | Use<'Thumbnails', MThumbnail[]> |