[bilibili] squanch this

This commit is contained in:
Mort Yao 2019-09-11 18:26:29 +02:00
parent d645eb7d70
commit 42924dcad5
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -45,7 +45,7 @@ class Bilibili(VideoExtractor):
def bilibili_headers(referer=None, cookie=None):
# a reasonable UA
ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'
headers = {'Accept': '*/*', 'User-Agent': ua}
headers = {'Accept': '*/*', 'Accept-Language': 'en-US,en;q=0.5', 'User-Agent': ua}
if referer is not None:
headers.update({'Referer': referer})
if cookie is not None: