-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YouTube stream fails with could not extract stream for this track #1705
Comments
@discord-player/extractor has ytdl-core as a peer dependency, so if you're using that you'll want to install play-dl then delete the ytdl-core folder inside of node_modules |
You don't have to modify |
I have followed the workaround, but it's still failing Song Link: https://open.spotify.com/track/1SOTqkhpIWoLX1AS9Y2RpU |
Downgrading to [email protected] worked for me |
Try clearing npm cache or use another package manager like yarn. |
Downgrade the ytdl-core package to [email protected], like that: |
Downgrading to My solution
This should make your bot play youtube stream smoothly and play live stream normally |
How can i setup the enviroment variable, where is the variable? |
You can set it in your |
For fix check this comment: fent/node-ytdl-core#1197 (comment) |
And then What am I supposed to do with that variable? |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
You don't have to do anything with the environment variable in your code. The |
Yup, worked for me as well. |
The issue has been fixed https://github.com/fent/node-ytdl-core/releases/tag/v4.11.4 |
Does still work for you? For me, it doesn't. Tried everything, installing different packages, but no positive results. |
This is still an issue as of [email protected]. Downgrading to 4.9.1 fixed the issue for now. |
We support the following youtube streaming libs: If |
Discord Player throws
could not extract stream for this track
when trying to stream youtube source. This affects all the extractors that depend upon youtube streaming:Update 1
Streaming works upon removing
ytdl-core
and installingplay-dl
. This seems to be node-ytdl-core issue as mentioned in fent/node-ytdl-core#1197. As a workaround, follow these steps:npm install play-dl
ornpm install @distube/ytdl-core
DP_FORCE_YTDL_MOD="play-dl"
orDP_FORCE_YTDL_MOD="@distube/ytdl-core"
in your.env
fileIf
npm
doesn't work, clear npm cache and try again, or switch to another package manager likeyarn
.The text was updated successfully, but these errors were encountered: