mirror of
https://github.com/alexta69/metube.git
synced 2026-03-18 22:43:51 +00:00
Allow users to prefer a specific video codec (H.264, H.265, AV1, VP9) when adding downloads. The selector filters available formats via yt-dlp format strings, falling back to best available if the preferred codec is not found. The completed downloads table now shows Quality and Codec columns.
30 lines
625 B
TypeScript
30 lines
625 B
TypeScript
|
|
export interface Download {
|
|
id: string;
|
|
title: string;
|
|
url: string;
|
|
quality: string;
|
|
format: string;
|
|
folder: string;
|
|
custom_name_prefix: string;
|
|
playlist_item_limit: number;
|
|
split_by_chapters?: boolean;
|
|
chapter_template?: string;
|
|
subtitle_format?: string;
|
|
subtitle_language?: string;
|
|
subtitle_mode?: string;
|
|
video_codec?: string;
|
|
status: string;
|
|
msg: string;
|
|
percent: number;
|
|
speed: number;
|
|
eta: number;
|
|
filename: string;
|
|
checked: boolean;
|
|
timestamp?: number;
|
|
size?: number;
|
|
error?: string;
|
|
deleting?: boolean;
|
|
chapter_files?: Array<{ filename: string, size: number }>;
|
|
}
|