andrade-soulseek-downloader
Version:
Simple, safe Soulseek download library with built-in rate limiting to prevent bans
29 lines • 772 B
TypeScript
export interface YouTubeDownloadOptions {
artist: string;
title: string;
label?: string;
destinationDir: string;
customFileName?: string;
}
export interface SearchResult {
url: string;
title: string;
duration: string;
views: number;
relevanceScore: number;
}
export declare class YouTubeDownloader {
private ytDlpPath;
private readonly maxRetries;
private readonly retryDelay;
constructor();
private checkYtDlp;
private calculateRelevanceScore;
private searchYouTube;
private convertToMp3;
private downloadWithYtDlp;
private downloadVideo;
private downloadWithRetry;
download(options: YouTubeDownloadOptions): Promise<string | null>;
}
//# sourceMappingURL=youtube-downloader.d.ts.map