[extractors] Use http_headers for setting the User-Agent and the Referer
This commit is contained in:
parent
3fcfb8e9fa
commit
e1554a407d
5 changed files with 9 additions and 8 deletions
|
@ -169,7 +169,9 @@ class WDRMobileIE(InfoExtractor):
|
|||
'title': mobj.group('title'),
|
||||
'age_limit': int(mobj.group('age_limit')),
|
||||
'url': url,
|
||||
'user_agent': 'mobile',
|
||||
'http_headers': {
|
||||
'User-Agent': 'mobile',
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue