]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/bilibili.py
Merge tag 'upstream/2017.05.18.1'
[youtubedl] / youtube_dl / extractor / bilibili.py
index 80dd8382e4e8758274e3a7ba2418479ee3d2fbbc..1e3f25515d3596f7b196a16ab867b7b5e8c891ab 100644 (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({