mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-26 14:50:24 +00:00
moved the User-Agent workaround to the BlipTV IE
This commit is contained in:
parent
3187e42a23
commit
818282710b
@ -2062,6 +2062,7 @@ class BlipTVIE(InfoExtractor):
|
|||||||
self._downloader.trouble(u'ERROR: unable to parse video information: %s' % repr(err))
|
self._downloader.trouble(u'ERROR: unable to parse video information: %s' % repr(err))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
std_headers['User-Agent'] = 'iTunes/10.6.1'
|
||||||
return [info]
|
return [info]
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ except ImportError:
|
|||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
std_headers = {
|
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-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': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
||||||
'Accept-Encoding': 'gzip, deflate',
|
'Accept-Encoding': 'gzip, deflate',
|
||||||
|
Loading…
Reference in New Issue
Block a user