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

Youku.com: -g cannot play on another place #7880

Closed
gam2046 opened this issue Dec 16, 2015 · 1 comment
Closed

Youku.com: -g cannot play on another place #7880

gam2046 opened this issue Dec 16, 2015 · 1 comment

Comments

@gam2046
Copy link
Contributor

@gam2046 gam2046 commented Dec 16, 2015

command line:

youtube-dl.exe -v --cookies ck.txt -g http://v.youku.com/v_show/id_XMTQxMDYxMTYxMg==.htmml
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--cookies', u'ck.txt', u'-g', u'http://v.youku.com/v_show/id_XMTQxMDYxMTYxMg==.htmml']
[debug] Encodings: locale cp936, fs mbcs, out cp936, pref cp936
[debug] youtube-dl version 2015.12.13
[debug] Python version 2.7.10 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-77197-gdf2ce13, ffprobe N-77197-gdf2ce13
[debug] Proxy map: {}
http://k.youku.com/player/getFlvPath/sid/245027401537812750dfc_00/st/flv/fileid/0300011200566BB6925A20080D48DD5D839B78-6D8D-06C1-7104-06535CCAD3E4?ep=cCaRGkuKUs4B4CDYgD8bYCniICFcXP4J9h%2BFgNNgALshTu7N6zjYxZjBTP9CHvltdipyZO6Fo9PuGEccYfY3oRwQ30jbOPrn%2F%2FDn5a1VwZMFFWpHBs6isFSWRTX3&ypp=0&ctype=12&myp=0&K=088130d06e867373241270f1&ev=1&token=8656&hd=1&oip=1879785735
(Multiple output...ellipsis)

cookies.txt:

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file!  Do not edit.

youku.com   FALSE   /   FALSE       xreferrer   http://www.youku.com

I tried to request the viode with cookies but failed(By Chrome App:Postman). The server returns 403 Forbidden, so what should I do ?

Thanks.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Dec 16, 2015

The final URL requires correct cookies for downloading. These cookies can be found from the following command:

youtube-dl -j "http://v.youku.com/v_show/id_XMTQxMDYxMTYxMg==.html"

Note the value of data['http_headers']['Cookie'], assume the JSON data above is saved in data.

@yan12125 yan12125 closed this Dec 16, 2015
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.