1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 00:07:49 +00:00

Do not use the final URL for -g

This commit is contained in:
Ricardo Garcia 2010-03-11 22:56:47 +01:00
parent 44e16fa17f
commit 79f193e5d8

View file

@ -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