moved the User-Agent workaround to the BlipTV IE
authorFilippo Valsorda <filippo.valsorda@gmail.com>
Wed, 1 Aug 2012 18:51:56 +0000 (20:51 +0200)
committerFilippo Valsorda <filippo.valsorda@gmail.com>
Wed, 1 Aug 2012 18:51:56 +0000 (20:51 +0200)
youtube_dl/InfoExtractors.py
youtube_dl/utils.py

index a95b4aafeb4a448e9c1cd329a29c1723e1fcf8cb..67b83a39c23dbaeebd2c074319e44d139f2f3363 100644 (file)
@@ -2062,6 +2062,7 @@ class BlipTVIE(InfoExtractor):
                                self._downloader.trouble(u'ERROR: unable to parse video information: %s' % repr(err))
                                return
 
+               std_headers['User-Agent'] = 'iTunes/10.6.1'
                return [info]
 
 
index 6b78f51cd6971f9ba6906f31cb4d1deda5288a30..2853ba50f228bb1f87900aa78a256b1637fcee2b 100644 (file)
@@ -19,7 +19,7 @@ except ImportError:
        import StringIO
 
 std_headers = {
-       'User-Agent': 'iTunes/10.6.1',
+       'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:5.0.1) Gecko/20100101 Firefox/5.0.1',
        'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
        'Accept-Encoding': 'gzip, deflate',