Skip to content
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

Using youtube-dl via php doesn't work #21997

Closed
bakumak opened this issue Aug 4, 2019 · 0 comments
Closed

Using youtube-dl via php doesn't work #21997

bakumak opened this issue Aug 4, 2019 · 0 comments
Labels

Comments

@bakumak
Copy link

@bakumak bakumak commented Aug 4, 2019

I have this code in my php file but it doesn't work so what's wrong with it?

$cmd .= "/usr/local/bin/youtube-dl --embed-thumbnail -x --audio-format mp3 -o "/var/www/%(title)s.%(ext)s" ";
$cmd .= escapeshellarg($link);
shell_exec($cmd);

I can't find anything on the net so it would be awsome if you could help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.