you-get icon indicating copy to clipboard operation
you-get copied to clipboard

youku Video download error:视频下载报错

Open Sarmay opened this issue 3 years ago • 5 comments

Equipment设备:MacBook M1 Terminal command终端命令:

you-get -i 'https://v.youku.com/v_show/id_XNzIwMjM1ODAw.html'
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get:   (1) Rule out any network problem.
you-get:   (2) Make sure you-get is up-to-date.
you-get:   (3) Check if the issue is already known, on
you-get:         https://github.com/soimort/you-get/wiki/Known-Bugs
you-get:         https://github.com/soimort/you-get/issues
you-get:   (4) Run the command with '--debug' option,
you-get:       and report this issue with the full output.

Terminal command --debug终端命令:

❯ you-get -i 'https://v.youku.com/v_show/id_XNzIwMjM1ODAw.html' --debug
you-get: version 0.4.1500, a tiny downloader that scrapes the web.
you-get: Namespace(version=False, help=False, info=True, url=False, json=False, no_merge=False, no_caption=False, force=False, skip_existing_file_size_check=False, format=None, output_filename=None, output_dir='.', player=None, cookies=None, timeout=600, debug=True, input_file=None, password=None, playlist=False, auto_rename=False, insecure=False, http_proxy=None, extractor_proxy=None, no_proxy=False, socks_proxy=None, stream=None, itag=None, URL=['https://v.youku.com/v_show/id_XNzIwMjM1ODAw.html'])
Traceback (most recent call last):
  File "/opt/homebrew/bin/you-get", line 8, in <module>
    sys.exit(main())
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/__main__.py", line 92, in main
    main(**kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/common.py", line 1798, in main
    script_main(any_download, any_download_playlist, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/common.py", line 1680, in script_main
    download_main(
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/common.py", line 1327, in download_main
    download(url, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/common.py", line 1789, in any_download
    m.download(url, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/extractors/youku.py", line 308, in youku_download_by_url
    Youku().download_by_url(url, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/extractor.py", line 48, in download_by_url
    self.prepare(**kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/extractors/youku.py", line 166, in prepare
    self.utid = fetch_cna()
  File "/opt/homebrew/lib/python3.9/site-packages/you_get/extractors/youku.py", line 27, in fetch_cna
    req = urllib.request.urlopen(url)
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
    return opener.open(url, data, timeout)
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
    response = self._open(req, data)
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
    result = func(*args)
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1375, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1350, in do_open
    r = h.getresponse()
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1347, in getresponse
    response.begin()
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/opt/homebrew/Cellar/[email protected]/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 276, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

Sarmay avatar Mar 25 '21 02:03 Sarmay

Hello @Sarmay, 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.

祝您健康!

soimort-bot avatar Mar 25 '21 02:03 soimort-bot

Can't download youku in 1080p and can't download iqiyi videos at all

snowywish avatar Apr 21 '21 16:04 snowywish

@Sarmay https://github.com/soimort/you-get/blob/ad24e68baa5106522c6d4a37395896e9776ea88f/src/you_get/extractors/youku.py#L26

curl http://log.mmstat.com/eg.js to see whether you get 404. then probably in your network, something is blocking this domain. local dns like pi-hole would very likely block it.

Voxis avatar Jul 13 '21 20:07 Voxis

我在下载bilibili视频时有类似的问题,无法获取大会员的清晰度(1080P 60fps,4K等)。在Firefox登录了大会员账号后,用cookies下载付费番剧也会报错。 命令:you-get https://www.bilibili.com/bangumi/play/ss34412 -c C:\USERS\...\cookies.sqlite报错

xiaowu2001 avatar Mar 31 '22 10:03 xiaowu2001

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

5258 avatar Oct 11 '22 06:10 5258