1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-25 02:05:50 +01:00

Remove iPhone from user agent. This breaks a lot of extractors

In the future, it might be worth investigating whether we get better content when we claime to be an iPhone.
This commit is contained in:
Philipp Hagemeister 2013-11-18 13:52:24 +01:00
parent a81b4d5c8f
commit ae8f787141

View File

@ -176,7 +176,7 @@ def compat_ord(c):
compiled_regex_type = type(re.compile(''))
std_headers = {
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 (Chrome) (iPhone)',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101 Firefox/10.0 (Chrome)',
'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',