[ie] Add browser impersonation support to more extractors (#16029)
Closes #7001, Closes #7444, Closes #16004 Authored by: bashonly
This commit is contained in:
parent
1fe0bf23aa
commit
1d1358d09f
3 changed files with 4 additions and 3 deletions
|
|
@ -268,7 +268,7 @@ class XHamsterIE(InfoExtractor):
|
|||
display_id = mobj.group('display_id') or mobj.group('display_id_2')
|
||||
|
||||
desktop_url = re.sub(r'^(https?://(?:.+?\.)?)m\.', r'\1', url)
|
||||
webpage, urlh = self._download_webpage_handle(desktop_url, video_id)
|
||||
webpage, urlh = self._download_webpage_handle(desktop_url, video_id, impersonate=True)
|
||||
|
||||
error = self._html_search_regex(
|
||||
r'<div[^>]+id=["\']videoClosed["\'][^>]*>(.+?)</div>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue