{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/5752","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5752/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5752/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5752/events","html_url":"https://github.com/rg3/youtube-dl/issues/5752","id":78193089,"number":5752,"title":"youtube-dl in php not working(extract audio)","user":{"login":"TheGr33k","id":6447590,"avatar_url":"https://avatars.githubusercontent.com/u/6447590?v=3","gravatar_id":"","url":"https://api.github.com/users/TheGr33k","html_url":"https://github.com/TheGr33k","followers_url":"https://api.github.com/users/TheGr33k/followers","following_url":"https://api.github.com/users/TheGr33k/following{/other_user}","gists_url":"https://api.github.com/users/TheGr33k/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGr33k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGr33k/subscriptions","organizations_url":"https://api.github.com/users/TheGr33k/orgs","repos_url":"https://api.github.com/users/TheGr33k/repos","events_url":"https://api.github.com/users/TheGr33k/events{/privacy}","received_events_url":"https://api.github.com/users/TheGr33k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-19T18:07:14Z","updated_at":"2015-05-19T18:30:34Z","closed_at":null,"body":"`$url=exec(\"youtube-dl -g https://www.youtube.com/watch?v=mk48xRzuNvA\");` works perfectly but the following doesn't seems to execute on the server\r\n\r\n`exec(\"youtube-dl -x --audio-format mp3 -f 18 -o \\\"%(title)s.%(ext)s\\\"  https://www.youtube.com/watch?v=mk48xRzuNvA\");`\r\n\r\nHowever if i load the equivalent command in commandline it works just fine\r\n\r\n`youtube-dl -x --audio-format mp3 -f 18 -o \"%(title)s.%(ext)s\"  https://www.youtube.com/watch?v=mk48xRzuNvA`\r\n\r\nIs there something wrong with the way i escape the command in php or something "},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/103624850","html_url":"https://github.com/rg3/youtube-dl/issues/5752#issuecomment-103624850","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5752","id":103624850,"user":{"login":"dstftw","id":1908898,"avatar_url":"https://avatars.githubusercontent.com/u/1908898?v=3","gravatar_id":"","url":"https://api.github.com/users/dstftw","html_url":"https://github.com/dstftw","followers_url":"https://api.github.com/users/dstftw/followers","following_url":"https://api.github.com/users/dstftw/following{/other_user}","gists_url":"https://api.github.com/users/dstftw/gists{/gist_id}","starred_url":"https://api.github.com/users/dstftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstftw/subscriptions","organizations_url":"https://api.github.com/users/dstftw/orgs","repos_url":"https://api.github.com/users/dstftw/repos","events_url":"https://api.github.com/users/dstftw/events{/privacy}","received_events_url":"https://api.github.com/users/dstftw/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T18:30:34Z","updated_at":"2015-05-19T18:30:34Z","body":"Post the output of running this in php: \r\n```echo system(\"youtube-dl -x --audio-format mp3 -f 18 -o \\\"%(title)s.%(ext)s\\\" https://www.youtube.com/watch?v=mk48xRzuNvA 2>&1\");```"}}