andrade-soulseek-downloader
Version:
Simple, safe Soulseek download library with built-in rate limiting to prevent bans
24 lines • 626 B
TypeScript
export interface JunoDownloadOptions {
artist: string;
title: string;
destinationDir: string;
customFileName?: string;
}
export declare class JunoDownloader {
private readonly baseUrl;
private readonly userAgent;
constructor();
/**
* Searches Juno.co.uk for a track and returns the first snippet URL found
*/
private searchJuno;
/**
* Downloads a file from a URL
*/
private downloadFile;
/**
* Downloads a snippet from Juno.co.uk
*/
download(options: JunoDownloadOptions): Promise<string | null>;
}
//# sourceMappingURL=juno-downloader.d.ts.map