From: Ricardo Garcia Date: Thu, 11 Mar 2010 21:56:47 +0000 (+0100) Subject: Do not use the final URL for -g X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=79f193e5d87f68b345bc34f6b9bca36c58eee68c;p=youtube-dl Do not use the final URL for -g --- 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