mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-20 16:15:41 +07:00
[bilibili] Fix video downloading (closes #13001)
This commit is contained in:
@@ -122,6 +122,11 @@ def _real_extract(self, url):
|
||||
'preference': -2 if 'hd.mp4' in backup_url else -3,
|
||||
})
|
||||
|
||||
for a_format in formats:
|
||||
a_format.setdefault('http_headers', {}).update({
|
||||
'Referer': url,
|
||||
})
|
||||
|
||||
self._sort_formats(formats)
|
||||
|
||||
entries.append({
|
||||
|
||||
Reference in New Issue
Block a user