UNPKG

@lzwme/m3u8-dl

Version:

A free, open-source, and powerful m3u8 video batch downloader with multi-threaded downloading, play-while-downloading, WebUI management, video parsing, and more.

26 lines (25 loc) 738 B
import type { ApiResponse, M3u8DLOptions, M3u8DLResult, VideoInfo } from '../types'; export declare class VideoParser { private static readonly platforms; /** * 解析视频 URL */ static parse(url: string, headers?: Record<string, string>): Promise<ApiResponse<VideoInfo>>; static download(url: string, options: M3u8DLOptions): Promise<M3u8DLResult>; /** * 根据 URL 获取平台标识 */ static getPlatform(url: string): { url: string; platform: string; errmsg?: undefined; } | { url: string; platform: string; errmsg: string; }; /** * 获取所有支持的平台列表 */ static getSupportedPlatforms(): string[]; }