Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Help with php script #4905
Help with php script #4905
Comments
|
I'm closing this, since it's not a problem with youtube-dl, and you have found the answer. |
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.