Files
yt-dlp-webui/frontend/src/interfaces.ts
2022-08-29 22:44:06 +02:00

34 lines
573 B
TypeScript

export interface IMessage {
status: string,
progress?: string,
size?: string,
dlSpeed?: string
pid: number
}
export interface IDLMetadata {
formats: Array<IDLFormat>,
best: IDLFormat,
thumbnail: string,
title: string,
}
export interface IDLFormat {
format_id: string,
format_note: string,
fps: number,
resolution: string,
vcodec: string,
acodec: string,
}
export interface IDLMetadataAndPID {
pid: number,
metadata: IDLMetadata
}
export interface IDLSpeed {
effective: number,
unit: string,
}