1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-02-22 08:26:00 +00:00

[ie] Add browser impersonation support to more extractors (#16029)

Closes #7001, Closes #7444, Closes #16004
Authored by: bashonly
This commit is contained in:
bashonly
2026-02-21 13:24:05 -06:00
committed by GitHub
parent 1fe0bf23aa
commit 1d1358d09f
3 changed files with 4 additions and 3 deletions

View File

@@ -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>',