From: Remita Amine Date: Fri, 8 Jul 2016 19:15:21 +0000 (+0100) Subject: [mgtv] pass geo verification headers for api request X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=89e2fff2b7e4aeda92cfc811d395b68d18f2d85d;p=youtube-dl [mgtv] pass geo verification headers for api request --- 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 = []