From 89e2fff2b7e4aeda92cfc811d395b68d18f2d85d Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Fri, 8 Jul 2016 20:15:21 +0100 Subject: [PATCH] [mgtv] pass geo verification headers for api request --- youtube_dl/extractor/mgtv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/mgtv.py b/youtube_dl/extractor/mgtv.py index 9fbc74f5d5..d970e94ecd 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 = []