mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 04:32:27 +03:00
解析到mp4地址之后 需要在做一次假的referer验证 才能够下载视频
This commit is contained in:
parent
0f4d895058
commit
4dbcb5de68
@ -28,6 +28,7 @@ first send a get request of https://171-113-204-241-159305376.dns-detect.alicdn.
|
||||
to verify the referer host whether is allowed or not
|
||||
if the referer is empty or not in the whitelist the video will not allow to download
|
||||
ALL IN ALL : the prismplayer.js will verfiy the request referer. if the referer is allowed the the video will send
|
||||
so well have to make a fake referer in the https://171-113-204-241-159305376.dns-detect.alicdn.com request
|
||||
```
|
||||
video_url = html['data']['tv']['videoPath']
|
||||
headers = fake_headers.copy()
|
||||
|
Loading…
Reference in New Issue
Block a user