mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-05 00:51:29 +00:00
[mgtv] pass geo verification headers for api request
This commit is contained in:
parent
cedc70b292
commit
89e2fff2b7
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ class MGTVIE(InfoExtractor):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
api_data = self._download_json(
|
api_data = self._download_json(
|
||||||
'http://v.api.mgtv.com/player/video', video_id,
|
'http://v.api.mgtv.com/player/video', video_id,
|
||||||
query={'video_id': video_id})['data']
|
query={'video_id': video_id},
|
||||||
|
headers=self.geo_verification_headers())['data']
|
||||||
info = api_data['info']
|
info = api_data['info']
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
|
|
Loading…
Reference in a new issue