UNPKG

@subtitles/providers

Version:

Providers are the core of applications, where the subtitles are collected. Each provider exports a unique strategy for gathering data. From legendastv's web scraping from opensubtitle API usage, you can collect subtitles from your favorite tv shows and mo

9 lines (8 loc) 368 B
import { Provider, SearchFilter, Subtitle, Authenticator } from '../types'; export default class OpenSubtitleProvider implements Provider<Subtitle[]>, Authenticator { #private; constructor(username: string, password: string); get authenticated(): boolean; authenticate(): Promise<boolean>; search({ keyword }: SearchFilter): Promise<Subtitle[]>; }