1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-01 15:15:15 +00:00

[ie] Add extractor impersonate API (#9474)

Authored by: bashonly, Grub4K, pukkandan
This commit is contained in:
bashonly
2024-03-30 18:18:07 -05:00
committed by GitHub
parent 0df63cce69
commit 50c2935231
2 changed files with 52 additions and 11 deletions

View File

@@ -463,9 +463,10 @@ class Request:
else:
raise TypeError('headers must be a mapping')
def update(self, url=None, data=None, headers=None, query=None):
def update(self, url=None, data=None, headers=None, query=None, extensions=None):
self.data = data if data is not None else self.data
self.headers.update(headers or {})
self.extensions.update(extensions or {})
self.url = update_url_query(url or self.url, query or {})
def copy(self):