yt-dlp extractor plugin for DisTube.js.org.
npm install @distube/yt-dlp@latest
Create a DisTube's ExtractorPlugin
instance.
YtDlpPluginOptions.update
(boolean
): Default is true
. Update the yt-dlp binary when the plugin is initialized.const Discord = require("discord.js");
const client = new Discord.Client();
const { DisTube } = require("distube");
const { YtDlpPlugin } = require("@distube/yt-dlp");
const distube = new DisTube(client, {
plugins: [new YtDlpPlugin({ update: true })],
});