aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-03-11 22:56:47 +0100
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:26:38 +0100
commit79f193e5d87f68b345bc34f6b9bca36c58eee68c (patch)
tree05c4f228c7a700454850c9482e9ab4d940cba4ba
parent44e16fa17f2b77cdc44801fc1533245068b02da7 (diff)
Do not use the final URL for -g
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 97e25f0e2..4530c5da2 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -385,7 +385,7 @@ class FileDownloader(object):
# Verify URL if it's an HTTP one
if info_dict['url'].startswith('http'):
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:
raise UnavailableFormatError