From 90a8bd305de4153ec21137a73ff482dcc2e3e19b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Feb 2021 16:25:53 +0100 Subject: Dissociate video file names and video uuid --- server/types/models/video/video.ts | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'server/types/models/video/video.ts') diff --git a/server/types/models/video/video.ts b/server/types/models/video/video.ts index ae23cc30f..92dcbaf59 100644 --- a/server/types/models/video/video.ts +++ b/server/types/models/video/video.ts @@ -1,27 +1,28 @@ -import { VideoModel } from '../../../models/video/video' import { PickWith, PickWithOpt } from '@shared/core-utils' +import { VideoModel } from '../../../models/video/video' +import { MUserVideoHistoryTime } from '../user/user-video-history' +import { MScheduleVideoUpdate } from './schedule-video-update' +import { MTag } from './tag' +import { MThumbnail } from './thumbnail' +import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist' +import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' import { MChannelAccountDefault, MChannelAccountLight, MChannelAccountSummaryFormattable, MChannelActor, MChannelFormattable, + MChannelHost, MChannelUserId } from './video-channels' -import { MTag } from './tag' -import { MVideoCaptionLanguage, MVideoCaptionLanguageUrl } from './video-caption' +import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file' +import { MVideoLive } from './video-live' import { MStreamingPlaylistFiles, MStreamingPlaylistRedundancies, MStreamingPlaylistRedundanciesAll, MStreamingPlaylistRedundanciesOpt } from './video-streaming-playlist' -import { MVideoFile, MVideoFileRedundanciesAll, MVideoFileRedundanciesOpt } from './video-file' -import { MThumbnail } from './thumbnail' -import { MVideoBlacklist, MVideoBlacklistLight, MVideoBlacklistUnfederated } from './video-blacklist' -import { MScheduleVideoUpdate } from './schedule-video-update' -import { MUserVideoHistoryTime } from '../user/user-video-history' -import { MVideoLive } from './video-live' type Use = PickWith @@ -143,6 +144,10 @@ export type MVideoWithChannelActor = MVideo & Use<'VideoChannel', MChannelActor> +export type MVideoWithHost = + MVideo & + Use<'VideoChannel', MChannelHost> + export type MVideoFullLight = MVideo & Use<'Thumbnails', MThumbnail[]> & -- cgit v1.2.3