Comments (7)
Notice what it says in the debug. If your server is not localhost (you're running the code on a machine different than the one running your web browser) AND your curl request goes via ipv4, this will fail.
from youtube-downloader.
How can this be fixed? I don't know about curl but know a decent amount of php.
from youtube-downloader.
If the server on which you are running the code supports ipv6, you should be able to force curl to use ipv6.
This would mean setting:
curl_setopt( $ch , CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V6);
Inside the curlGet($url) function in curl.php
However, my guess is that your server is falling back to ipv4 because it can't reach the youtube server over ipv6, in which case this script will not work for you - you can try the javascript in browser version I posted a link to in another thread.
Basically if you add that it may just fail with a different option
from youtube-downloader.
That explains it. I'm using an older server and it doesn't like ipv6. Where is this javascript version?
from youtube-downloader.
https://github.com/edse/keepvideos
from youtube-downloader.
Thanks a lot!
from youtube-downloader.
You're welcome. I also updated the readme and added the config to the curl.php to resolve only to ipv6 - it will still fail but the error message might be a bit cleaner.
I don't have an ipv4 only server to try it on. ;)
from youtube-downloader.
Related Issues (20)
- save links HOT 1
- Convert and Download to .mp3 not working HOT 2
- is blocked by google Cross-Origin Read Blocking (CORB)
- No longer working HOT 6
- This youtube downloader is as good as dead HOT 1
- main channel thumbnail not displaying HOT 3
- Is the signature dechipher function recently changed?
- No format stream map found - was the video id correct? HOT 1
- Video IDs containing an underscore are not supported HOT 1
- Error in video ID: HTTP is not supported. HOT 10
- HTTP ERROR 500
- SSL Certificate problem
- Uncaught exception 'Exception' with message '<url> malformed' HOT 1
- Youtu.be url is not working
- CurlClient.php:203 Stack trace: #0 line 308 HOT 2
- How to change Youtube API key?
- this script is unable to download some of the youtube videos HOT 1
- Hi my problem first run url HOT 1
- OpenSSL Error messages: error:14095126 unexpected eof while reading HOT 1
- Problem while downloading youtube videos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-downloader.