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

Crash for --list-sub on YouTube #1700

Closed
jayseye opened this issue Nov 2, 2013 · 2 comments
Closed

Crash for --list-sub on YouTube #1700

jayseye opened this issue Nov 2, 2013 · 2 comments

Comments

@jayseye
Copy link

@jayseye jayseye commented Nov 2, 2013

Using this command line to list subtitles:
youtube-dl --list-sub -s o-Uv5ZNk0RE

This Traceback is reported:

[youtube] Setting language
[youtube] o-Uv5ZNk0RE: Downloading video webpage
[youtube] o-Uv5ZNk0RE: Downloading video info webpage
[youtube] o-Uv5ZNk0RE: Extracting video information
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 18, in
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 766, in main
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 719, in _real_main
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 705, in download
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 342, in extract_info
File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 122, in extract
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1375, in _real_extract
File "/usr/bin/youtube-dl/youtube_dl/extractor/subtitles.py", line 17, in _list_available_subtitles
File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1114, in _get_available_subtitles
File "/usr/lib/python2.6/urllib.py", line 1269, in urlencode
v = quote_plus(str(v))

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)

Also want to say that youtube-dl is a great project -- thanks!

@phihag phihag closed this in 8eddf3e Nov 2, 2013
@phihag
Copy link
Contributor

@phihag phihag commented Nov 2, 2013

Thank you for the report. This issue has been fixed in youtube-dl 2013.11.02. Type sudo youtube-dl -U (or ask your distribution's maintainer) to update.

@jayseye
Copy link
Author

@jayseye jayseye commented Nov 4, 2013

Thanks for the quick fix!

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.