Recently normal youtube-dl will face some traffic problems, for python users can use yt-dlp instead
but you can use extractor for discord-player which is downloader by the following command
YOUTUBE_DL_HOST=https://api.github.com/repos/yt-dlp/yt-dlp/releases?per_page=1 npm install @discord-player/downloader
or add dependence in package.json and just
YOUTUBE_DL_HOST=https://api.github.com/repos/yt-dlp/yt-dlp/releases?per_page=1 npm install
notice: use cross-env in windows
then inside package youtube-dl-exec will download yt-dlp instead of ytdl when it install
and just follow downloader instruction
const downloader = require("@discord-player/downloader").Downloader;
player.use("YOUTUBE_DL", downloader);
it also resolves my bot play longer than 10 minutes video need a longer timeout, otherwise , it'll just stop after few seconds
Recently normal youtube-dl will face some traffic problems, for python users can use
yt-dlpinsteadbut you can use extractor for discord-player which is downloader by the following command
YOUTUBE_DL_HOST=https://api.github.com/repos/yt-dlp/yt-dlp/releases?per_page=1 npm install @discord-player/downloaderor add dependence in package.json and just
YOUTUBE_DL_HOST=https://api.github.com/repos/yt-dlp/yt-dlp/releases?per_page=1 npm installnotice:
use cross-env in windowsthen inside package
youtube-dl-execwill download yt-dlp instead of ytdl when it installand just follow downloader instruction
it also resolves my bot play longer than 10 minutes video need a longer timeout, otherwise , it'll just stop after few seconds