yt-dlp
Search YouTube and resolve audio stream URLs via yt-dlp.
yt-dlp API for Plugins
Availability
import type { NuclearPluginAPI } from '@nuclearplayer/plugin-sdk';
export default {
async onEnable(api: NuclearPluginAPI) {
if (!api.Ytdlp.available) {
api.Logger.warn('yt-dlp is not installed, skipping YouTube features');
return;
}
// Safe to call search() and getStream() here
},
};Usage
Data types
YtdlpSearchResult
YtdlpSearchResultField
Type
Description
YtdlpStreamInfo
YtdlpStreamInfoField
Type
Description
Reference
Stream expiry
Last updated