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.
UnicodeEncodeError when i try to download Videos #258
Comments
|
Unfortunately, I could not reproduce this with
Could you post the output of
I'll have an idea what might cause the problem though, and will investigate it once I have the time. |
|
:-) Locale before: Regards Chris |
|
This should be fixed even when the locale is POSIX (by removing characters we cannot represent) in youtube-dl 2012.01.08b. |
Hi there,
i try to download Videos with the following command
youtube-dl --title --continue --max-quality 37 --batch-file=FILE -i
It worked fine until an error occurs :
[youtube] Setting language
[youtube] PFI-gAAQyjM: Downloading video webpage
[youtube] PFI-gAAQyjM: Downloading video info webpage
[youtube] PFI-gAAQyjM: Extracting video information
Traceback (most recent call last):
File "/usr/bin/youtube-dl", line 4514, in
main()
File "/usr/bin/youtube-dl", line 4505, in main
_real_main()
File "/usr/bin/youtube-dl", line 4489, in _real_main
retcode = fd.download(all_urls)
File "/usr/bin/youtube-dl", line 840, in download
ie.extract(url)
File "/usr/bin/youtube-dl", line 1098, in extract
return self._real_extract(url)
File "/usr/bin/youtube-dl", line 1427, in _real_extract
'player_url': player_url,
File "/usr/bin/youtube-dl", line 807, in process_info
success = self._do_download(filename, info_dict)
File "/usr/bin/youtube-dl", line 901, in _do_download
if self.params.get('continuedl', False) and os.path.isfile(filename) and not self.params.get('nopart', False):
File "/usr/lib/python2.6/genericpath.py", line 29, in isfile
st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 15: ordinal not in range(128)
Any idea?
Regards Chris