Isso tem a ver com algum erro na atualização mais recente (ou outra mais recente). Eu usei 2014.09.29.2
e funcionou corretamente.
Quero fazer o download de todos os meus vídeos privados, mas ao tentar recebo erros. Estes são os argumentos da linha de comando que estou usando:
youtube-dl -u "Username" -p "Password" https://youtube.com/watch?v=58e_io9sIjE
E aqui está a saída:
[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'
Alguma ideia de como corrigir isso?
A versão de 2016.08.19 não pode baixar o vídeo privado do youtube
se você usar --verbose, há uma Exceção descartada.
Tags youtube-dl download