UNPKG

@lzwme/m3u8-dl

Version:

Batch download of m3u8 files and convert to mp4

12 lines (11 loc) 461 B
import type { OutgoingHttpHeaders } from 'node:http'; export interface GetM3u8UrlsOption { url: string; /** 播放子页面 URL 特征规则 */ subUrlRegex?: string | RegExp; headers?: OutgoingHttpHeaders | string; deep?: number; visited?: Set<string>; } /** 从指定的 url 页面中提取 m3u8 播放地址。deep 指定搜索页面深度 */ export declare function getM3u8Urls(opts: GetM3u8UrlsOption): Promise<Map<string, string>>;