모든 비공개 동영상을 다운로드하고 싶지만 시도할 때 오류가 발생합니다. 내가 사용하는 명령줄 매개변수는 다음과 같습니다.
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'
이 문제를 해결하는 방법을 아시나요?
답변1
이는 최신 업데이트(또는 기타 최신 버전)의 일부 버그와 관련이 있습니다. 나는 그것을 사용했고 2014.09.29.2
잘 작동합니다.
답변2
을 사용해 보세요 youtube-dl --no-part
.