UNPKG

@lzwme/m3u8-dl

Version:

Batch download of m3u8 files and convert to mp4

32 lines (31 loc) 882 B
import { LiteStorage } from '@lzwme/fe-utils'; import type { M3u8DLOptions, VideoDetails } from '../types'; export interface M3u8StorConfig { /** 播放地址缓存 */ api?: string[]; /** * 远程加载的配置信息 * @deprecated */ remoteConfig?: { /** 最近一次更新的时间。默认缓存1小时 */ updateTime?: number; /** 远程配置缓存 */ data?: { apiSites: { url: string; desc?: string; enable?: 0 | 1 | boolean; remote?: boolean; }[]; }; }; /** 最近一次搜索下载的信息缓存 */ latestSearchDL?: { keyword: string; urls: string[]; info: Partial<VideoDetails>; dlOptions: M3u8DLOptions; }; } export declare const stor: LiteStorage<M3u8StorConfig>;