streamlink: [Youtube] URL has an invalid label

With a lot of Youtube URLs I only get [cli][error] Could not open stream: Unable to open URL: http://r4---sn-4g5e6n7k.googlevideo.com/videoplayback?id=o-AMx00u_Hy1utcNFZMyq4fLygBtKL09bG6RGnc83-F8Af&dur=14472.394&signature=977F6BDF0E09E5C488AA419336106DF2EBAEDF84.326F564D004C949EC33D69C1AB82A47553651372&mm=31&mn=sn-4g5e6n7k&upn=dyJorCtyKNU&initcwndbps=697500&ip=<IP address>&key=yt6&lmt=1477844257912727&mime=video%2Fmp4&ms=au&source=youtube&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Csource%2Cupn%2Cexpire&mv=m&ratebypass=yes&pl=17&ipbits=0&mt=1479283246&itag=22&expire=1479304889&nh=IgpwZjAxLmZyYTE1Kg04Ny4xMjguMjM2LjUz (URL has an invalid label.)

For example, this one works: https://www.youtube.com/watch?v=n6gI_RszUgY while this one does not: https://www.youtube.com/watch?v=iVogxITG97k

Also why are the URLs HTTP and not HTTPS when fetching? With a fetch script I use in my browser, the URLs are always HTTPS.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 29 (21 by maintainers)

Most upvoted comments

Weed to open another issue to upgrade requests when they release a less strict IDNA version.

Should confirm that it works as expected on Windows too, and make sure the new installer installs the correct version of requests.