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.
Fatal error because of unicode chars #4272
Comments
|
Please include the full output of the command when run with the |
|
d:\music>youtube-dl.exe --verbose -x --max-filesize 50m --embed-thumbnail https: d:\music>pause |
|
As can be seen at the commented stackoverflow link at https://github.com/rg3/youtube-dl/blob/master/youtube_dl/utils.py#L352 it looks (unless I've misread the issue) like this is a problem with non-ascii filenames using Python < v3, particularly on Windows. At that link some workarounds are given (and one is used in youtube-dl), but as can be seen from the non-resolution at http://bugs.python.org/issue1759845 it looks like if you need to deal with a non-ascii filename which is in an encoding other than your locale-encoding using python < v3, you are in for a nightmare. I guess the "solution" in these cases is to use python >=v3... :-( |
d:\music>youtube-dl.exe -x --max-filesize 50m --embed-thumbnail https://www.yout
ube.com/user/cyberhops/videos
[download] Downloading playlist: cyberhops
[youtube:user] cyberhops: Downloading video ids from 1 to 51
[youtube:user] cyberhops: Downloading video ids from 51 to 101
[youtube:user] cyberhops: Downloading video ids from 101 to 151
[youtube:user] cyberhops: Downloading video ids from 151 to 201
[youtube:user] cyberhops: Downloading video ids from 201 to 251
[youtube:user] cyberhops: Downloading video ids from 251 to 301
[youtube:user] playlist cyberhops: Downloading 261 videos
[download] Downloading video #1 of 261
[youtube] Confirming age
[youtube] CQ6Dsa6M3x8: Downloading webpage
[youtube] CQ6Dsa6M3x8: Downloading video info webpage
[youtube] CQ6Dsa6M3x8: Extracting video information
[youtube] CQ6Dsa6M3x8: Downloading DASH manifest
[download] Jan - Métakramé Au Cycloscotch-CQ6Dsa6M3x8.m4a has already been downl
oaded
[youtube] Post-process file Jan - Métakramé Au Cycloscotch-CQ6Dsa6M3x8.m4a exist
s, skipping
[ffmpeg] Fixing audio file "Jan - Métakramé Au Cycloscotch-CQ6Dsa6M3x8.m4a"
[atomicparsley] Adding thumbnail to "Jan - Métakramé Au Cycloscotch-CQ6Dsa6M3x8.
m4a"
Traceback (most recent call last):
File "main.py", line 18, in
File "youtube_dl__init__.pyo", line 356, in main
File "youtube_dl__init__.pyo", line 346, in _real_main
File "youtube_dl\YoutubeDL.pyo", line 1097, in download
File "youtube_dl\YoutubeDL.pyo", line 547, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 677, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 600, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 547, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 593, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 873, in process_video_result
File "youtube_dl\YoutubeDL.pyo", line 1079, in process_info
File "youtube_dl\YoutubeDL.pyo", line 1134, in post_process
File "youtube_dl\postprocessor\atomicparsley.pyo", line 46, in run
File "subprocess.pyo", line 710, in init
File "subprocess.pyo", line 958, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 22:
ordinal not in range(128)