Skip to content

[Suggestion] for anyone suffering slow traffic when play music #858

@spd789562

Description

@spd789562

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions