Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YT: AttributeError: 'NoneType' object has no attribute 'encode' #1681

Closed
wbyoko opened this issue Oct 29, 2013 · 2 comments
Closed

YT: AttributeError: 'NoneType' object has no attribute 'encode' #1681

wbyoko opened this issue Oct 29, 2013 · 2 comments

Comments

@wbyoko
Copy link

@wbyoko wbyoko commented Oct 29, 2013

Seems to only happen when login credentials are present in youtube download

Did some peripheral debugging and seems related to changes in the html of the login page. seems the dsh var isn't set anymore.

Current Version
Cached from Oct 26, 2013

Debug Output

[debug] User config: []
[debug] Command-line args: ['--verbose', '--username', '', '--password', '', '--format', '22/35/34/18/6/5', '-o', 'The Ohio State University Marching Band Performs their Hollywood.%(ext)s', 'http://www.youtube.com/watch?v=DNe0ZUD19EE']
[debug] youtube-dl version 2013.10.28
[debug] Python version 2.7.1 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
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 18, in
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 766, in main
File "/usr/local/bin/youtube-dl/youtube_dl/init.py", line 719, in _real_main
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 704, in download
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 342, in extract_info
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 121, in extract
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 116, in initialize
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 142, in _real_initialize
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 110, in _login
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 110, in
AttributeError: 'NoneType' object has no attribute 'encode'

@phihag phihag closed this in 795f28f Oct 29, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Oct 29, 2013

Thank you for the report. This bug has been fixed in youtube-dl 2013.10.29. Type sudo youtube-dl -U to update.

Out of curiosity, why are you specifying the whole title in the command line instead of just -o '%(title)s.%(ext)s'?

@wbyoko
Copy link
Author

@wbyoko wbyoko commented Oct 29, 2013

Thanks for the tip. That is not the full title. That was just copy and truncate work for the issue.

Thank you for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.