|
|
@ -385,7 +385,7 @@ class FileDownloader(object):
|
|
|
|
# Verify URL if it's an HTTP one
|
|
|
|
# Verify URL if it's an HTTP one
|
|
|
|
if info_dict['url'].startswith('http'):
|
|
|
|
if info_dict['url'].startswith('http'):
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
info_dict['url'] = self.verify_url(info_dict['url'].encode('utf-8')).decode('utf-8')
|
|
|
|
self.verify_url(info_dict['url'].encode('utf-8')).decode('utf-8')
|
|
|
|
except (OSError, IOError, urllib2.URLError, httplib.HTTPException, socket.error), err:
|
|
|
|
except (OSError, IOError, urllib2.URLError, httplib.HTTPException, socket.error), err:
|
|
|
|
raise UnavailableFormatError
|
|
|
|
raise UnavailableFormatError
|
|
|
|
|
|
|
|
|
|
|
|