diff options
Diffstat (limited to 'server/models/video/video-interface.ts')
-rw-r--r-- | server/models/video/video-interface.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/models/video/video-interface.ts b/server/models/video/video-interface.ts index 6a3db4f3e..1402df26a 100644 --- a/server/models/video/video-interface.ts +++ b/server/models/video/video-interface.ts | |||
@@ -32,6 +32,9 @@ export namespace VideoMethods { | |||
32 | export type OptimizeOriginalVideofile = (this: VideoInstance) => Promise<void> | 32 | export type OptimizeOriginalVideofile = (this: VideoInstance) => Promise<void> |
33 | export type TranscodeOriginalVideofile = (this: VideoInstance, resolution: number) => Promise<void> | 33 | export type TranscodeOriginalVideofile = (this: VideoInstance, resolution: number) => Promise<void> |
34 | export type GetOriginalFileHeight = (this: VideoInstance) => Promise<number> | 34 | export type GetOriginalFileHeight = (this: VideoInstance) => Promise<number> |
35 | export type GetEmbedPath = (this: VideoInstance) => string | ||
36 | export type GetThumbnailPath = (this: VideoInstance) => string | ||
37 | export type GetPreviewPath = (this: VideoInstance) => string | ||
35 | 38 | ||
36 | // Return thumbnail name | 39 | // Return thumbnail name |
37 | export type GenerateThumbnailFromData = (video: VideoInstance, thumbnailData: string) => Promise<string> | 40 | export type GenerateThumbnailFromData = (video: VideoInstance, thumbnailData: string) => Promise<string> |
@@ -107,7 +110,9 @@ export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.In | |||
107 | getOriginalFile: VideoMethods.GetOriginalFile | 110 | getOriginalFile: VideoMethods.GetOriginalFile |
108 | generateMagnetUri: VideoMethods.GenerateMagnetUri | 111 | generateMagnetUri: VideoMethods.GenerateMagnetUri |
109 | getPreviewName: VideoMethods.GetPreviewName | 112 | getPreviewName: VideoMethods.GetPreviewName |
113 | getPreviewPath: VideoMethods.GetPreviewPath | ||
110 | getThumbnailName: VideoMethods.GetThumbnailName | 114 | getThumbnailName: VideoMethods.GetThumbnailName |
115 | getThumbnailPath: VideoMethods.GetThumbnailPath | ||
111 | getTorrentFileName: VideoMethods.GetTorrentFileName | 116 | getTorrentFileName: VideoMethods.GetTorrentFileName |
112 | getVideoFilename: VideoMethods.GetVideoFilename | 117 | getVideoFilename: VideoMethods.GetVideoFilename |
113 | getVideoFilePath: VideoMethods.GetVideoFilePath | 118 | getVideoFilePath: VideoMethods.GetVideoFilePath |
@@ -122,6 +127,7 @@ export interface VideoInstance extends VideoClass, VideoAttributes, Sequelize.In | |||
122 | optimizeOriginalVideofile: VideoMethods.OptimizeOriginalVideofile | 127 | optimizeOriginalVideofile: VideoMethods.OptimizeOriginalVideofile |
123 | transcodeOriginalVideofile: VideoMethods.TranscodeOriginalVideofile | 128 | transcodeOriginalVideofile: VideoMethods.TranscodeOriginalVideofile |
124 | getOriginalFileHeight: VideoMethods.GetOriginalFileHeight | 129 | getOriginalFileHeight: VideoMethods.GetOriginalFileHeight |
130 | getEmbedPath: VideoMethods.GetEmbedPath | ||
125 | 131 | ||
126 | setTags: Sequelize.HasManySetAssociationsMixin<TagAttributes, string> | 132 | setTags: Sequelize.HasManySetAssociationsMixin<TagAttributes, string> |
127 | addVideoFile: Sequelize.HasManyAddAssociationMixin<VideoFileAttributes, string> | 133 | addVideoFile: Sequelize.HasManyAddAssociationMixin<VideoFileAttributes, string> |