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.

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>;