Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
'_PseudoRequest' object has no attribute 'get_type' when downloading private YouTube video #4910
Comments
|
I suspect that you are using an outdated version of youtube-dl. Can you post the output you get when you add |
|
I don't think that's it. I updated from 02-02-2015 when i saw the bug. Currently have youtube-dl @2015.02.06 (net) installed. |
|
Sorry, the information included in the output you get with I am not sure why you refuse to share that information, but we cannot in good faith extend support to users who are unwilling to provide us any debugging information. Therefore, I am closing this issue. Feel free to provide the requested information and we'll reopen it. |
|
[debug] System config: [] youtube-dl: error: You must provide at least one URL. |
|
That does not show the error. Please post the output you get when you add |
|
I can reproduce this issue. Here is the requested debugging information:
|
|
@ebpitts Can you also reproduce the issue with the latest version? See our FAQ if you have trouble updating. |
|
Sorry, 2015.02.09.3 and 2015.02.19.3 looked similar at a glance, and I didn't realize I didn't have the latest version. Good news! I can no longer reproduce the problem. |
Very similar to #4861
[jpro:~/Downloads] jesse% /opt/local/bin/youtube-dl -u xxx 'https://www.youtube.com/watch?v=xxx' -p xxx -2 xxx
[youtube] Downloading login page
[youtube] Logging in
[youtube] Submitting TFA code
[youtube] Ohnccq2SLvY: Downloading webpage
[youtube] Ohnccq2SLvY: Extracting video information
[youtube] Ohnccq2SLvY: Downloading DASH manifest
Traceback (most recent call last):
File "/opt/local/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 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/local/bin/youtube-dl/main.py", line 19, in
File "/opt/local/bin/youtube-dl/youtube_dl/init.py", line 382, in main
File "/opt/local/bin/youtube-dl/youtube_dl/init.py", line 372, in _real_main
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1353, in download
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 630, in extract_info
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in process_ie_result
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1024, in process_video_result
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 916, in _calc_headers
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 942, in _calc_cookies
File "/opt/local/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 "/opt/local/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 "/opt/local/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 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1071, in return_ok
if not fn(cookie, request):
File "/opt/local/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'