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] Unable to get HD videos (1080P) #2931

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

forest-sky-sea
Copy link

@forest-sky-sea forest-sky-sea commented Oct 22, 2021

The video site shows that it has 1080P resolution.
https://v.youku.com/v_show/id_XNDQ0NTQ5MDUyMA==
image

you-get: Found cna in imported cookies. Use it
site:                优酷 (Youku)
title:               庭院售卖会
streams:             # Available quality and codecs
    [ DEFAULT ] _________________________________
    - format:        mp4hd2v2
      container:     mp4
      video-profile: 超清
      size:          59.9 MiB (62821861 bytes)
      m3u8_url:      http://pl-ali.youku.com/playlist/m3u8?vid=XNDQ0NTQ5MDUyMA&type=mp4hd2v3&ups_client_netip=655fb72e&utid=bg2hGSMke3wCAWVfty77RgVf&ccode=0532&psid=4af329fb1f0cf7e82c52df198964d92743346&ups_userid=1035074260&ups_ytid=1035074260&duration=657&expire=18000&drm_type=1&drm_device=0&dyt=0&btf=&rid=20000000640E38302193A50F9160443BC5F7026402000000&ups_ts=1634889479&onOff=0&encr=0&ups_key=7a6f0db1cec9cb051c7becc4e10e9fa4
    # download-with: you-get --format=mp4hd2v2 [URL]

    - format:        mp4hd
      container:     mp4
      video-profile: 高清
      size:          39.4 MiB (41323726 bytes)
      m3u8_url:      http://pl-ali.youku.com/playlist/m3u8?vid=XNDQ0NTQ5MDUyMA&type=mp4hdv3&ups_client_netip=655fb72e&utid=bg2hGSMke3wCAWVfty77RgVf&ccode=0532&psid=4af329fb1f0cf7e82c52df198964d92743346&ups_userid=1035074260&ups_ytid=1035074260&duration=657&expire=18000&drm_type=1&drm_device=0&dyt=0&btf=&rid=20000000CC050B688EAEFE7DB58BE4E7E383D1FD02000000&ups_ts=1634889479&onOff=0&encr=0&ups_key=fb39135cb437c865b0afe2ea32cb2d8e
    # download-with: you-get --format=mp4hd [URL]

    - format:        mp4sd
      container:     mp4
      video-profile: 标清
      size:          24.4 MiB (25589168 bytes)
      m3u8_url:      http://pl-ali.youku.com/playlist/m3u8?vid=XNDQ0NTQ5MDUyMA&type=flvhdv3&ups_client_netip=655fb72e&utid=bg2hGSMke3wCAWVfty77RgVf&ccode=0532&psid=4af329fb1f0cf7e82c52df198964d92743346&ups_userid=1035074260&ups_ytid=1035074260&duration=657&expire=18000&drm_type=1&drm_device=0&dyt=0&btf=&rid=2000000038E8AD6087B101DBA3A945A296149D4E02000000&ups_ts=1634889479&onOff=0&encr=0&ups_key=9c50896c87057cc734531716bd0305e7
    # download-with: you-get --format=mp4sd [URL]

The highest resolution obtained is only 720P

@soimort-bot
Copy link
Collaborator

Hello @forest-sky-sea,
Thanks for the Pull Request. We ❤️ our contributors!
Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.

祝您健康!

@ngolynguyen
Copy link

Hello @forest-sky-sea, Thanks for the Pull Request. We heart our contributors! Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.

祝您健康!

please help, Douyin.com can not download right now.

@kws66
Copy link

kws66 commented Dec 10, 2021

我使用了, you-get -c /data/mp4/test/youk.txt https://v.youku.com/v_show/id_XNDM5MTg1MjAxNg==.html
提示错误如下:还请大佬帮忙看看
截屏2021-12-10 下午5 10 36

@jhriyaz
Copy link

jhriyaz commented Dec 21, 2021

can't download 1080p with cookies
Capture

@20NE
Copy link

20NE commented Jul 22, 2022

you-get: ccode参数错误
seems ccode 0532 outdated.

@SunMoonStar2000
Copy link

0502?

@sz1262011
Copy link

you-get: ccode参数错误 seems ccode 0532 outdated.
0502?

应该是过期了,需参考 # Found in http://g.alicdn.com/player/ykplayer/0.5.64/youku-player.min.js
self.ccode = '0532' # ccode参数错误
self.ccode = '050F' # 无权播放
self.ccode = '0505' # 无权播放
self.ccode = '0502' # 用户账户异常、请重新登录
self.ccode = '0500' # ccode参数错误
self.ccode = '0401' # 用户账户异常、请重新登录

使用正确的ccode后,配置cookies即可生效下载视频。

@Voxis
Copy link

Voxis commented Nov 8, 2022

you-get: ccode参数错误 seems ccode 0532 outdated.
0502?

应该是过期了,需参考 # Found in http://g.alicdn.com/player/ykplayer/0.5.64/youku-player.min.js self.ccode = '0532' # ccode参数错误 self.ccode = '050F' # 无权播放 self.ccode = '0505' # 无权播放 self.ccode = '0502' # 用户账户异常、请重新登录 self.ccode = '0500' # ccode参数错误 self.ccode = '0401' # 用户账户异常、请重新登录

使用正确的ccode后,配置cookies即可生效下载视频。

请问正确的ccode是什么? 看上去好像是hardcode的

@sz1262011
Copy link

@Voxis 问题:#2931 (comment)
可以参考这个commit: af3468f

@amakerlife
Copy link

amakerlife commented Jan 10, 2023

@sz1262011 @Voxis @SunMoonStar2000

大佬能否看一下这种方法能否在 you-get 中实现?

iawia002/lux#1186

现在 you-get 可以下载优酷视频,但有些视频只能下载一部分

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

Successfully merging this pull request may close these issues.

10 participants