From: Sergey M․ Date: Thu, 11 Jul 2019 17:04:25 +0000 (+0700) Subject: [mgtv] Pass Referer HTTP header for format URLs (closes #21726) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=4dcd4b7b163feddc07959ca34cbb29815b354c25;p=youtube-dl [mgtv] Pass Referer HTTP header for format URLs (closes #21726) --- diff --git a/youtube_dl/extractor/mgtv.py b/youtube_dl/extractor/mgtv.py index 84137df50..7ae2e3c3b 100644 --- a/youtube_dl/extractor/mgtv.py +++ b/youtube_dl/extractor/mgtv.py @@ -79,6 +79,9 @@ class MGTVIE(InfoExtractor): 'ext': 'mp4', 'tbr': tbr, 'protocol': 'm3u8_native', + 'http_headers': { + 'Referer': url, + }, }) self._sort_formats(formats)