Do not use the final URL for -g
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Thu, 11 Mar 2010 21:56:47 +0000 (22:56 +0100)
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>
Sun, 31 Oct 2010 10:26:38 +0000 (11:26 +0100)
youtube-dl

index 97e25f0e232eefaf43a79f13c4c200829c6b4d6e..4530c5da2132340a9ca6d415c65fc004e217ecd7 100755 (executable)
@@ -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