From ca6d36227a9273f616a462d3aad6a721ab5dd627 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 30 Jan 2020 11:53:38 +0100 Subject: Add url field in caption and use it for thumbnails --- server/typings/models/video/video-caption.ts | 1 + server/typings/models/video/video.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'server/typings/models') 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 // ############################################################################ export type MVideoCaptionLanguage = Pick +export type MVideoCaptionLanguageUrl = Pick export type MVideoCaptionVideo = MVideoCaption & Use<'Video', Pick> 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 { MChannelUserId } from './video-channels' import { MTag } from './tag' -import { MVideoCaptionLanguage } from './video-caption' +import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' import { MStreamingPlaylistFiles, MStreamingPlaylistRedundancies, @@ -140,7 +140,7 @@ export type MVideoAP = MVideo & Use<'Tags', MTag[]> & Use<'VideoChannel', MChannelAccountLight> & Use<'VideoStreamingPlaylists', MStreamingPlaylistFiles[]> & - Use<'VideoCaptions', MVideoCaptionLanguage[]> & + Use<'VideoCaptions', MVideoCaptionLanguageUrl[]> & Use<'VideoBlacklist', MVideoBlacklistUnfederated> & Use<'VideoFiles', MVideoFileRedundanciesOpt[]> & Use<'Thumbnails', MThumbnail[]> -- cgit v1.2.3