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

Invalid character #264

Closed
ostal opened this issue Dec 31, 2011 · 1 comment
Closed

Invalid character #264

ostal opened this issue Dec 31, 2011 · 1 comment

Comments

@ostal
Copy link

@ostal ostal commented Dec 31, 2011

C:\Users\Zajac\Downloads>youtube-dl.py -c -w -f 34 --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" -a aa.txt
[youtube] Setting language
[youtube] 6pRLwuPdTZg: Downloading video webpage
[youtube] 6pRLwuPdTZg: Downloading video info webpage
[youtube] 6pRLwuPdTZg: Extracting video information
[download] Destination: Andrzej Piaseczny - Z g│ŕbi duszy.flv
[download] 100.0% of 6.97M at 52.09k/s ETA 00:00
Traceback (most recent call last):
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 4514, in
main()
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 4505, in main
_real_main()
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 4489, in _real_main
retcode = fd.download(all_urls)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 840, in download
ie.extract(url)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 1098, in extract
return self._real_extract(url)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 1427, in _real_extract
'player_url': player_url,
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 819, in process_info
self.post_process(filename, info_dict)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 855, in post_process
info = pp.run(info)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 3982, in run
filecodec = self.get_audio_codec(path)
File "C:\Users\Zajac\Downloads\youtube-dl.py", line 3945, in get_audio_codec
handle = subprocess.Popen(cmd, stderr=file(os.path.devnull, 'w'), stdout=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 679, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 49-50: ordinal not in range(128)

C:\Users\Zajac\Downloads>

@phihag
Copy link
Contributor

@phihag phihag commented Jan 8, 2012

This issue should be fixed in youtube-dl 2012.01.08b. You can update youtube-dl with youtube-dl.py --update. Note that the switch from bytes (or even worse, mixed strings-bytes, "encodingless strings") is a huge change and may not be correctly applied in every IE. Please do open a new bug if this or a similar error occurs again.

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.