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

Help with php script #4905

Closed
alduccino opened this issue Feb 8, 2015 · 1 comment
Closed

Help with php script #4905

alduccino opened this issue Feb 8, 2015 · 1 comment

Comments

@alduccino
Copy link

@alduccino alduccino commented Feb 8, 2015

Hi,

I'm using the code from here #711 (comment) , it's working fine, but I was wondering if someone could help me to add a form to post the url and submit it to the script.

Edit : I found how to do it.
If anyone is interested edit 👍
$url = 'https://www.youtube.com/watch?v=GMuZdN84PJg';
$cmd = '/usr/bin/python /usr/local/bin/youtube-dl -o "/path/to/your/folder/%(id)s.%(ext)s" ' . escapeshellarg($url);

to:
$cmd = '/usr/bin/python /usr/local/bin/youtube-dl -o "/path/to/your/folder/%(id)s.%(ext)s" ' . escapeshellarg($_POST["url"]);

and create an html file in the same folder with this content:
http://img.alduccino.com/images/2015/02/08/b900ce063bc7a7acc4e3e1d48d4dbad2.jpg

Best regards, Mike.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Feb 8, 2015

I'm closing this, since it's not a problem with youtube-dl, and you have found the answer.

@jaimeMF jaimeMF closed this Feb 8, 2015
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.