@lzwme/m3u8-dl
Version:
Batch download of m3u8 files and convert to mp4
14 lines (13 loc) • 562 B
TypeScript
import { WorkerPool } from './worker_pool';
import { parseM3U8 } from './parseM3u8';
import type { M3u8DLOptions, TsItemInfo, WorkerTaskInfo } from '../types/m3u8';
export declare const workPoll: WorkerPool<WorkerTaskInfo, {
success: boolean;
info: TsItemInfo;
}>;
export declare function preDownLoad(url: string, options: M3u8DLOptions): Promise<void>;
export declare function m3u8Download(url: string, options?: M3u8DLOptions): Promise<{
options: M3u8DLOptions;
m3u8Info: Awaited<ReturnType<typeof parseM3U8>> | null;
filepath: string;
}>;