mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[bilibili] Fix bilibili download 403
This commit is contained in:
parent
0ec2a6ee56
commit
06b9d97382
@ -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 = {'User-Agent': ua}
|
||||
headers = {'Accept': '*/*', 'User-Agent': ua}
|
||||
if referer is not None:
|
||||
headers.update({'Referer': referer})
|
||||
if cookie is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user