Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube: Almost all download urls won't play #82

Open
tonywamba opened this issue Feb 18, 2017 · 11 comments
Open

Youtube: Almost all download urls won't play #82

tonywamba opened this issue Feb 18, 2017 · 11 comments

Comments

@tonywamba
Copy link

For the last 10 Days I'm not being able to get Youtube mp4 link for almost all youtube videos top play. They all fail to play even when I paste them in Google Chrome. I even tried changing "https" to "HTTP" in the links but still no luck. Two of my Windows Store Apps depends on this and I'm losing my users because of this. Been using MyToolKit for like 2 years and this is the first time I face this issue.
I'm using GetVideoUriAsync() to retrieve Youtube Download links.
for this Videos: https://www.youtube.com/watch?v=b8m9zhNAgKs I get this download link which doesn't work on both MediaElement and Google Chrome: https://r2---sn-a5mlrn7k.googlevideo.com/videoplayback?sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,usequic,expire&ei=IJaoWKnROo_z-gO9t42ICQ&itag=18&ratebypass=yes&ip=172.56.16.29&clen=26947602&expire=1487465089&mv=m&dur=293.059&ms=au&ipbits=0&mm=31&mn=sn-a5mlrn7k&gir=yes&id=o-AOo8UKFlvcOSHjuywZXsoVQGE2Mt0usgMw5Gvqbf2N9_&initcwndbps=82500&upn=RPzAt2Amegc&requiressl=yes&lmt=1478830296219007&mime=video/mp4&pl=23&source=youtube&usequic=no&mt=1487443345&key=yt6&signature=C6C69B64C5B0462CE8CDAA526EC630E6EAB2E87035A54EB2F28DBB35703F9E113A17BB716AE26DED28.8.

Or this music video: https://www.youtube.com/watch?v=o1AV068nAEo for which I get this download link that doesn't work: https://r9---sn-a5m7lner.googlevideo.com/videoplayback?mime=video/mp4&itag=18&key=yt6&ipbits=0&lmt=1481463972611900&usequic=no&source=youtube&mm=31&mn=sn-a5m7lner&upn=VNHqIlY-du8&dur=239.978&mt=1487443225&mv=m&ms=au&ip=172.56.16.29&clen=19113279&ei=kpWoWIfKBcvm-QP967TYDg&id=o-AN3ZULOdJ_QSAOX6_IhHWhIBpVSDnPN88W6NnDFFFGhh&sparams=clen,dur,ei,gcr,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,usequic,expire&initcwndbps=82500&gir=yes&expire=1487464946&pl=23&requiressl=yes&ratebypass=yes&gcr=us&signature=6C6CA84B8C7BDC54BDC19E2E4706467994277959C9D197EBCD7B927064F8E34CBCC36FDB2CA24D8710.0.

this video work though: https://www.youtube.com/watch?v=NcK4upEvqHg

I get this link: https://r2---sn-a5m7ln76.googlevideo.com/videoplayback?expire=1487464566&dur=633.742&pl=23&gir=yes&usequic=no&ratebypass=yes&lmt=1478999065976926&upn=v73JHvy6wBk&id=o-ALgRLQ13jVSzz8WftJJZwzxltULxNLRkpk8TWhc2pRBZ&ei=FpSoWMWsCcO0-gONm5DIDA&initcwndbps=85000&sparams=clen,dur,ei,gir,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source,upn,usequic,expire&key=yt6&ip=172.56.16.29&source=youtube&ms=au&mv=m&mt=1487442687&mn=sn-a5m7ln76&mm=31&requiressl=yes&clen=34505068&mime=video/mp4&itag=18&ipbits=0&signature=5A824461FAD782F9EC8E2B4738F0F31937C56054.1F5BDD644F8F4D21BB8DD4D2AF3C3DF488F13EA9

I noticed that there is always a dot[.] at the end of those links that doesn't work. Don't know if this has anything to do with it.

Anyone having this issue? Any help will save me. Thank You.

@tonywamba tonywamba changed the title Youtube: Almost all links won't work Youtube: Almost all download links won't work Feb 18, 2017
@tonywamba tonywamba changed the title Youtube: Almost all download links won't work Youtube: Almost all download urls won't play Feb 18, 2017
@RicoSuter
Copy link
Owner

YouTube probably change the way the are encoding the urls on the website... Have you tried to debug the code and find the location of the problem? There are many unit tests for this.

@tonywamba
Copy link
Author

Thanks for your reply @RSuter . When debugging I don't run into any exception or error. The framework returns the Uri properly. The only problem is that the returned Url doesn't work. Can the unit tests assert that a returned URL is valid or invalid?

@RicoSuter
Copy link
Owner

Yes the unit tests check this... Most should be running

@yeejmeem
Copy link

yeejmeem commented Mar 2, 2017

I have the same issue. Can anybody help?

@verinder-bindra
Copy link

I have the same isssue ..please help

@Breakthru001
Copy link

tonywamba,
Just FYI, if you are testing with the .Net MediaElement, that control will not handle any HTTPS URIs (secure https). Https throws an exception, when you set the MediaElement Source property. At least not the Windows version of the MediaElement. The Silverlight MediaElement does support HTTPS. Microsoft seems unwilling to fix it. :-(

@tonywamba
Copy link
Author

tonywamba commented Mar 6, 2017

@SmokinLeather I'm using Microsoft Player Framework which does support https(I think) but it still ain't working. Especially music videos and Vevo videos. Other Videos like tutorials ,movie trailers are working well

@Breakthru001
Copy link

@tonywamba ,
Doing some testing on this...
I notice in the response content from Youtube that all the signatures it returns are in the format of two Hex strings (40 chars long) separated by a dot "."
Example
080EAA0A031790627F2B9B09A15E8294560AE7DE.6C03024D3EBF43B0F34C494538074D23CF767806

The video you mentioned that works for you has the signature in that format.
Your non-working urls have a different signature format.
Maybe something to investigate.

@verinder-bindra
Copy link

@RSuter if you want i can pay to have this issue fixed. we are all stuck

@RicoSuter
Copy link
Owner

RicoSuter commented Apr 27, 2017

@everyone: What have you already found out so far?

@verinder-bindra
Copy link

@RSuter nothing yet... R u working on fixing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants