diff options
author | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-08-01 20:51:56 +0200 |
---|---|---|
committer | Filippo Valsorda <filippo.valsorda@gmail.com> | 2012-08-01 20:51:56 +0200 |
commit | 818282710bde6534c28d7a302f61b75fa6f4fc1e (patch) | |
tree | 79a0438de238af0f3caad5b3d25dfc145cba8c1e /youtube_dl | |
parent | 3187e42a23a0bb68799935ed7acc7667e7dfe5c3 (diff) |
moved the User-Agent workaround to the BlipTV IE
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/InfoExtractors.py | 1 | ||||
-rw-r--r-- | youtube_dl/utils.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index a95b4aafe..67b83a39c 100644 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -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] diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 6b78f51cd..2853ba50f 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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', |