Giter VIP home page Giter VIP logo

Comments (4)

jeckman avatar jeckman commented on June 12, 2024

Note that the ipv6 versus ipv4 is not the only reason you might get errors from the resulting googlevideo.com url.

That said, the urls I get do usually have my ipv6 address in them, like:
http://r6---sn-p5qlsn7s.googlevideo.com/videoplayback?initcwndbps=3887000&ipbits=0&mm=31&fexp=900233&id=o-APyyqIcoIBHtN53kXjhF0Tb0Dm-N9s9_49IBI3w5god0&key=yt5&source=youtube&mv=m&ms=au&ip=2600:3c03::e03c:91fe:fe70:f2d0&mt=1410097771&signature=CBD7363B1793F228B2F31F06F4981A922FB6EE4F.7C5A1E8B2743C20BF85ABFC71BEBDFD56EB5D920&gcr=us&itag=36&upn=8uV6fboK14g&expire=1410119401&sparams=gcr,id,initcwndbps,ip,ipbits,itag,mm,ms,mv,source,upn,expire&sver=3&signature=

(I cut some stuff from that url, but not the ip=2600:3c03::e03c:91fe:fe70:f2d0 bit is the key).

The question isn't getting the http server to use ipv6, but whether or not curl on your server can reach google via ipv6, and will use that path over the ipv4 path (as I understand it).

See lines 14-15 of curl.php:
/* if you want to force to ipv6, uncomment the following line */
//curl_setopt( $ch , CURLOPT_IPRESOLVE , 'CURLOPT_IPRESOLVE_V6');

Try uncommenting that curl_setopt line - removing the // from the beginning, so that it reads:

curl_setopt( $ch , CURLOPT_IPRESOLVE , 'CURLOPT_IPRESOLVE_V6');

and see if that helps - that should force curl to use the ipv6 version of the url.

from youtube-downloader.

hedii avatar hedii commented on June 12, 2024

ok thank you.

the problem occurs only to some users of my website, and not for me. I share the same internet connection as my server. i was not able to reproduce on my computer the blank screen that some visitors had on my website.

One of the visitors gave me the url of his white screen browser's window.

the ip on it is strange : &ip=2a01%3Ae35%3A2ea2%3A9660%3A80f2%3A9adc%3A3c82%3A8181

the entire url:
http://r11---sn-25ge7ne6.googlevideo.com/videoplayback?sver=3&nh=IgpwcjAxLnBhcjAxKhkyMDAxOjQ4NjA6MToxOjA6MTkzNTowOjE4&upn=qn2GdyUX0Ic&ratebypass=yes&ipbits=0&ip=2a01%3Ae35%3A2ea2%3A9660%3A80f2%3A9adc%3A3c82%3A8181&key=yt5&itag=22&mm=31&source=youtube&ms=au&fexp=902534%2C908581%2C927622%2C931983%2C932404%2C932623%2C934024%2C934030%2C937429%2C941457%2C944312%2C946013%2C953801&mv=m&initcwndbps=705000&mt=1410079721&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cnh%2Cratebypass%2Csource%2Cupn%2Cexpire&id=o-AMCH0kcxDhVxy3FbKwIkqJoDE9ap1kJUP_VCJtsBwRHg&expire=1410101373&signature&title=Cinematic--Gothic-Storm---All-Is-Not-Lost

i've made the change on curl.php and i will see if this problem still happens.

Thank you very much!

from youtube-downloader.

jeckman avatar jeckman commented on June 12, 2024

That's a urlencoded version of your ipv6 ip: ip=2a01:e35:2ea2:9660:80f2:9adc:3c82:8181

My guess is that if others are getting errors it is either because they are trying to download videos not available in their region or video ids that are somehow encrypted.

In other words, I don't think it is the ipv6 issue since it looks to me like yours is ipv6

from youtube-downloader.

Tatikyan avatar Tatikyan commented on June 12, 2024

Hello Jeckman,
Thank you for YouTube-Downloader ,
I have an issue , and will be glad if you will help me,
When I am downloading videos from youtube in my local server it download each video , but in live server it download a few videos and doesn't download others which I can download in my local server.
Thank you very much.

from youtube-downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.