UNPKG

@lzwme/m3u8-dl

Version:

Batch download of m3u8 files and convert to mp4

31 lines (30 loc) 1.01 kB
import type { SearchApi, VideoSearchResult } from '../../types'; export declare const apiManage: { api: Map<string | number, SearchApi>; current: SearchApi; load(apidir?: string, force?: boolean): void; /** 添加 API 到列表中 */ add(sApi: SearchApi | { api: string; desc?: string; enable?: boolean; key?: string | number; }, force?: boolean): void; /** API 有效性校验 */ validate(sApi: SearchApi, desc?: string): sApi is SearchApi; /** 选择一个 API */ select(): Promise<void>; search(wd: string, api?: SearchApi): Promise<{ api_key: number | string; vod_id: number; vod_name: string; vod_en?: string; vod_time?: string; vod_remarks?: string; vod_play_from?: string; vod_play_url: string; type_name?: string; type_id?: number; }[]>; detail(info: VideoSearchResult["list"][0]): Promise<import("../../types").VideoDetailsResult>; };