mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[tapely] Add Referer header (Closes #4138)
This commit is contained in:
parent
519c73f267
commit
1a92e086a7
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ def _real_extract(self, url):
|
|||
request = compat_urllib_request.Request(playlist_url)
|
||||
request.add_header('X-Requested-With', 'XMLHttpRequest')
|
||||
request.add_header('Accept', 'application/json')
|
||||
request.add_header('Referer', url)
|
||||
|
||||
playlist = self._download_json(request, display_id)
|
||||
|
||||
|
|
Loading…
Reference in a new issue