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

Download link not working #2303

Closed
bitnol opened this issue Feb 4, 2014 · 1 comment
Closed

Download link not working #2303

bitnol opened this issue Feb 4, 2014 · 1 comment

Comments

@bitnol
Copy link

@bitnol bitnol commented Feb 4, 2014

I am using YSD with youtube-dl which returns back the decoded signature via a php wrapper on server-side.
But download links are not working
For example:
"sig" => "EB69878B76990CA0D5C3C33852BD7EAEFF39741E.82DE130CE80E7FC7CFF2078669F94FD38A1BDFAB",
"vid" => "_JQH3G0cCtY",
"url" => "http://s.ytimg.com/yts/jsbin/html5player-vfl9qWoOL.js"

decoded signature = 7AFDB1A83DF49F9668702FFC8CF7E08EC031ED2B.E1479EFFEA37DB25833C3C5D0AC099E7B87896B6

Final link = http://r9---sn-cvh7zn7y.googlevideo.com/videoplayback?id=fc9407dc6d1c0ad6&expire=1391547839&sver=3&ipbits=0&ms=au&sparams=gcr,id,ip,ipbits,itag,ratebypass,source,upn,expire&source=youtube&mt=1391524644&ratebypass=yes&fexp=900161,936117,936910,936913&itag=22&key=yt5&ip=117.199.152.39&upn=bsyZXhzGxls&mv=m&gcr=in&signature=7AFDB1A83DF49F9668702FFC8CF7E08EC031ED2B.E1479EFFEA37DB25833C3C5D0AC099E7B87896B6

Also, the url_encoded_fmt_stream_map dictionary data obtained via get_video_info is

fallback_host=tc.v9.cache1.googlevideo.com&s=EB69878B76990CA0D5C3C33852BD7EAEFF39741E.82DE130CE80E7FC7CFF2078669F94FD38A1BDFAB&quality=hd720&itag=22&type=video/mp4; codecs="avc1.64001F, mp4a.40.2"&url=http://r9---sn-cvh7zn7y.googlevideo.com/videoplayback?id=fc9407dc6d1c0ad6&expire=1391547839&sver=3&ipbits=0&ms=au&sparams=gcr%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&source=youtube&mt=1391524644&ratebypass=yes&fexp=900161%2C936117%2C936910%2C936913&itag=22&key=yt5&ip=117.199.152.39&upn=bsyZXhzGxls&mv=m&gcr=in

I am sure the decoded signature is 100% correct but don't understand why the download link is not working.

@phihag
Copy link
Contributor

@phihag phihag commented Feb 4, 2014

Your question is about YSD, not youtube-dl. Please do not file questions about YSD in the youtube-dl issuetracker. Instead, file questions about YSD in the YSD issue tracker.

That being said, are you sending the same cookies, using the same user-agent header, sending the request from the same IP address, and sending the request shortly after extraction? All these are or were required at some point.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.