aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-07-08 20:15:21 +0100
committerRemita Amine <remitamine@gmail.com>2016-07-08 20:18:25 +0100
commit89e2fff2b7e4aeda92cfc811d395b68d18f2d85d (patch)
tree89ddb30edde7f761b5d3ff3e5737521246ca3316 /youtube_dl
parentcedc70b29277c7ceebee4843bc2f13ebe88109b0 (diff)
[mgtv] pass geo verification headers for api request
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/mgtv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/mgtv.py b/youtube_dl/extractor/mgtv.py
index 9fbc74f5d..d970e94ec 100644
--- a/youtube_dl/extractor/mgtv.py
+++ b/youtube_dl/extractor/mgtv.py
@@ -26,7 +26,8 @@ class MGTVIE(InfoExtractor):
video_id = self._match_id(url)
api_data = self._download_json(
'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']
formats = []