Download
youtube-dl 問題,無法下載私人影片
我想下載我所有的私人影片,但我在嘗試時遇到錯誤。這是我正在使用的命令行參數:
youtube-dl -u "Username" -p "Password" https://youtube.com/watch?v=58e_io9sIjE
這是輸出:
[youtube] Downloading login page [youtube] Logging in [youtube] 58e_io9sIjE: Downloading webpage [youtube] 58e_io9sIjE: Extracting video information [youtube] 58e_io9sIjE: Downloading DASH manifest Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module> File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 380, in main File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 370, in _real_main File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1346, in download File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 624, in extract_info File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 670, in process_ie_result File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1016, in process_video_result File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 910, in _calc_headers File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 936, in _calc_cookies File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1324, in add_cookie_header cookies = self._cookies_for_request(request) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1250, in _cookies_for_request cookies.extend(self._cookies_for_domain(domain, request)) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1239, in _cookies_for_domain if not self._policy.return_ok(cookie, request): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1071, in return_ok if not fn(cookie, request): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1097, in return_ok_secure if cookie.secure and request.get_type() != "https": AttributeError: '_PseudoRequest' object has no attribute 'get_type'
知道如何解決這個問題嗎?
這與最新更新(或其他更新)中的一些錯誤有關。我用過
2014.09.29.2
,它工作正常。
嘗試使用
youtube-dl --no-part
.