Browse Source

[bilibili] Fix video downloading (closes #13001)

master-ytdl-org
Yen Chi Hsuan 8 years ago
parent
commit
228cd9bb90
No known key found for this signature in database GPG Key ID: 7F902A182457CA23
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      ChangeLog
  2. +5
    -0
      youtube_dl/extractor/bilibili.py

+ 1
- 0
ChangeLog View File

@ -1,6 +1,7 @@
version <unreleased>
Extractors
* [bilibili] Fix video downloading (#13001)
+ [vice] Support vice articles (#12968)
* [vice] Fix extraction for non en_us videos (#12967)
* [gdcvault] Fix extraction for some videos (#12733)


+ 5
- 0
youtube_dl/extractor/bilibili.py View File

@ -122,6 +122,11 @@ class BiliBiliIE(InfoExtractor):
'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({


Loading…
Cancel
Save