A feature-rich command-line audio/video downloader
Avoid using Unicode strings when forming URL requests (fixes issue #50)
Ricardo Garciaf5a5bec35145
diff --git a/youtube-dl b/youtube-dlindex 5efc55e6dd..047cc37f89 100755--- a/youtube-dl+++ b/youtube-dl@@ -309,7 +309,7 @@ class FileDownloader(object):# Do nothing else if in simulate modeif self.params.get('simulate', False):try:- info_dict['url'] = self.verify_url(info_dict['url'])+ info_dict['url'] = self.verify_url(info_dict['url'].encode('utf-8')).decode('utf-8')except (OSError, IOError, urllib2.URLError, httplib.HTTPException, socket.error), err:raise UnavailableFormatError@@ -338,7 +338,7 @@ class FileDownloader(object):returntry:- success = self._do_download(filename, info_dict['url'])+ success = self._do_download(filename, info_dict['url'].encode('utf-8'))except (OSError, IOError), err:raise UnavailableFormatErrorexcept (urllib2.URLError, httplib.HTTPException, socket.error), err: