Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[youku] 1080P formats missing #14932
Comments
|
I am not familiar with youku but
|
|
The same question, pls debug it. thanks! [youku] XMzA4MjIyNzQ3Ng: Retrieving cna info |
|
This is youku: http://www.youku.com |
|
Duplicate of #14815. |
|
The latest version 2017-12-14 still have this question, expect to debug it |
|
Can anyone test ccode = 0512 for your favorite videos? Lots of URLs here block users outside Mainland China, so I can't test them. |
|
The version 2017-12-14: $ youtube-dl --version 2017.12.14 $ youtube-dl -F http://v.youku.com/v_show/id_XMzIwMzg4NTkyOA==.html?spm=a2hww.20027244.topNav.1~3~1~3!4~A |
|
@ellicefix are you using ccode 0512? |
|
@yan12125 |
|
@ellicefix: Change the number in this line: https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youku.py#L157. 0501 does not work anymore. Please try 0512. |
|
@yan12125 |
|
i have tried to change the ccode number in 'usr/lib/python3/dist-packages/youtube_dl/extractor/youku.py',and then,the ERROR was the same: $ youtube-dl -F http://v.youku.com/v_show/id_XMzIzNTkyNzYyOA==.html?spm=a2hmv.20009921.posterMovieGrid86981.5~5~5~1~3!2~A |
|
@ellicefix: Could you run |
|
报错信息如下: lin@lin-PC:~$ youtube-dl -vF http://v.youku.com/v_show/id_XMzIzNTkyNzYyOA==.html |
|
@ellicefix: The active installationn is /usr/local/bin/youtube-dl. That's a compressed file so it's hard to modify its contents. Consider removing both /usr/local/bin/youtube-dl as well as the one in /usr/lib/python3/dist-packages/youtube_dl (most likely installed via apt-get or dpkg), installing youtube-dl again via pip, and modifying youku.py as described above. |
|
@yan12125 the youku's url include 『!』,youtube-dl will prompts an error,but,when I use single quote mark,no error any longer,Here: lin@lin-PC:$ youtube-dl -U youtube-dl: error: no such option: --select~A |
|
Thank you very much,hope you can correct ccode's mistakes in the new release. It would be better if you could be compatible with exclamation mark(!) in the link. |
|
@ellicefix: glad to see that you've got to it. Could you also try 0507? As reported in #14903 (comment), 0508 and 0512 are broken with some videos and 0507 always works. About the exclamation mark issue: it's controlled by your shell and beyond the ability of youtube-dl. You may want to ask bash/zsh/... maintainers how to use exclamation marks without quotation marks. |
|
When I use 0512 and 0508,There was indeed an interruption of downloads during the download process, but if I tried the download again, it would continue with the previous download process until the 1080p video was successfully downloaded. 0507 is not a good option because when using it, youtube-dl can not sniff the video options to 1080p. Some of Youku's videos are only available to VIP users,and I am YouKu's VIP,Using 0508 or 0512, Youtube-dl can sniff 1080p video, which is very important to me. |
|
when I use 0512,youtube-dl can not download the following video: |
|
What's the log? |
|
@CoXier And run it with --verbose will produce: |
|
I guess you have modified youku.py file because youtube-dl should print log
if error:
error_note = error.get('note')
if error_note is not None and '因版权原因无法观看此视频' in error_note:
raise ExtractorError(
'Youku said: Sorry, this video is available in China only', expected=True)
elif error_note and '该视频被设为私密' in error_note:
raise ExtractorError(
'Youku said: Sorry, this video is private', expected=True)
else:
msg = 'Youku server reported error %i' % error.get('code')
if error_note is not None:
msg += ': ' + error_note
raise ExtractorError(msg) |
|
@CoXier |
|
Now none of 0507, 0508 and 0512 works. |
|
0512 not work now! |
|
Any solution? |
|
0502
|
|
Fixed by #15939 Tested http://v.youku.com/v_show/id_XMzIwMzg4NTkyOA==.html and 1080P is still missing. |
|
missing ckey, and ckey is constant string. |






C:\Users\lin>youtube-dl -F http://v.youku.com/v_show/id_XMzIwMzg4NTkyOA==.html?spm=a2hww.20027244.m_250379.5~1~3~A
[youku] XMzIwMzg4NTkyOA: Retrieving cna info
[youku] XMzIwMzg4NTkyOA: Downloading JSON metadata
ERROR: Youku server reported error -6004: 客户端无权播放,201; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type youtube-dl -U to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
C:\Users\lin>youtube-dl -U
youtube-dl is up-to-date (2017.12.02)