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.
Crash for --list-sub on YouTube #1700
Comments
|
Thank you for the report. This issue has been fixed in youtube-dl 2013.11.02. Type |
|
Thanks for the quick fix! |
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!