解析到mp4地址之后 需要在做一次假的referer验证 才能够下载视频

This commit is contained in:
Eric 2017-09-16 18:23:13 +08:00
parent 0f4d895058
commit 4dbcb5de68

View File

@ -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()