Skip to content
Browse files

moved the User-Agent workaround to the BlipTV IE

  • Loading branch information...
1 parent 3187e42 commit 818282710bde6534c28d7a302f61b75fa6f4fc1e @FiloSottile FiloSottile committed
Showing with 2 additions and 1 deletion.
  1. +1 −0 youtube_dl/InfoExtractors.py
  2. +1 −1 youtube_dl/utils.py
View
1 youtube_dl/InfoExtractors.py
@@ -2062,6 +2062,7 @@ def _real_extract(self, url):
self._downloader.trouble(u'ERROR: unable to parse video information: %s' % repr(err))
return
+ std_headers['User-Agent'] = 'iTunes/10.6.1'
return [info]
View
2 youtube_dl/utils.py
@@ -19,7 +19,7 @@
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',

0 comments on commit 8182827

Please sign in to comment.
Something went wrong with that request. Please try again.