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)
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.
im also having the same error but in Linux when i watch this live stream https://www.youtube.com/watch?v=HZR0E8TzCsM with streamlink https://www.youtube.com/watch?v=HZR0E8TzCsM 720p [cli][info] Found matching plugin youtube for URL https://www.youtube.com/watch?v=HZR0E8TzCsM [cli][info] Available streams: 144p (worst), 240p, 360p, 480p, 720p, 1080p (best) [cli][info] Opening stream: 720p (hls) [stream.hls][error] Failed to open segment 440565: Unable to open URL: http://r7---sn-h0auphxqpvn-huts.googlevideo.com/videoplayback/id/HZR0E8TzCsM.0/itag/95/source/yt_live_broadcast/sq/440565/file/seg.ts?ratebypass=yes&cmbypass=yes&goi=160&sgoap=gir=yes;itag=140&sgovp=gir=yes;itag=136&hls_chunk_host=r7---sn-h0auphxqpvn-huts.googlevideo.com&playlist_type=DVR&gcr=mx&upn=5Prn-ypUcDE&mm=32&mn=sn-h0auphxqpvn-huts&ms=lv&mt=1479489751&mv=m&pl=20&ip=187.161.94.169&ipbits=0&expire=1479511376&sparams=ip,ipbits,expire,id,itag,source,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,playlist_type,gcr&signature=98415D27803637282E6ECAEEE8FD3E0AE86AB0F7.723C5688C0CF3D3544822EB32623431A7E2A88C8&key=dg_yt0&playlist=index.m3u8&live=1&goap=clen=32797;lmt=1479489770434768&govp=clen=193402;lmt=1479489770883196&dur=2.000 (URL has an invalid label.)