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.
Not able to download from youtube, while I can download from soundcloud #11627
Comments
|
Add |
|
Seems |
|
@dstftw Adding @yan12125 This is the output:
|
|
Most likely you're another victim of 2017. See #11573 (comment) for solutions. Feel free to leave comments if it doesn't solve the problem. |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.01.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
I have created my own locally hosted site to download audio from youtube and soundcloud using youtube-dl. Yesterday I updated my youtube-dl to the latest version and since the update I'm just not able to download content from youtube (BUT I can download audio from soundcloud with no problems at all) using my site. This is the code that is executed to download audio.
exec("C:/Users/myuser/Desktop/yt/bins/youtube-dl.exe --extract-audio --audio-format mp3 \"".$url."\" -o \"C:/Users/myuser/ytmp3tmp/testaudio.%(ext)s\"");Song will fail to download when this command is executed ON MY PHP FILE:
exec("C:/Users/myuser/Desktop/yt/bins/youtube-dl.exe --extract-audio --audio-format mp3 \"https://www.youtube.com/watch?v=5A4lnRSR-XY\" -o \"C:/Users/myuser/ytmp3tmp/testaudio.%(ext)s\"");Although, song will download just fine when this command is executed ON MY PHP FILE:
exec("C:/Users/myuser/Desktop/yt/bins/youtube-dl.exe --extract-audio --audio-format mp3 \"https://soundcloud.com/shadowanthem/maroon-5-dont-wanna-know\" -o \"C:/Users/myuser/ytmp3tmp/testaudio.%(ext)s\"");Long story short: any youtube video will fail to download when the code above is executed, but all soundcloud songs will be downloaded just fine. Both youtube and soundcloud content will be downloaded with no problems when I execute the command in cmd by myself.
I have also tried to use an older version of youtube-dl. It did not work.
Some logs
This is the
var_dumpfor theexecoutput when trying to download the youtube video.And that's when trying to download the soundcloud song.
If anything more is needed that I might have forgotten right now, you could ask me about it.