8319d6ae72
* Add video file metadata via ffprobe * Federate video file metadata * Add tests for file metadata generation * Complete tests for videoFile metadata federation * Lint migration and video-file for metadata * Objectify metadata from getter in ffmpeg-utils * Add metadataUrl to all videoFiles * Simplify metadata API middleware * Load playlist in videoFile when requesting metadata
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
import { VideoConstant, VideoResolution } from '@shared/models'
|
|
import { FfprobeData } from 'fluent-ffmpeg'
|
|
|
|
export interface VideoFile {
|
|
magnetUri: string
|
|
resolution: VideoConstant<VideoResolution>
|
|
size: number // Bytes
|
|
torrentUrl: string
|
|
torrentDownloadUrl: string
|
|
fileUrl: string
|
|
fileDownloadUrl: string
|
|
fps: number
|
|
metadata?: FfprobeData
|
|
metadataUrl?: string
|
|
}
|