commit: 4dcd4b7b163feddc07959ca34cbb29815b354c25
parent 5fc0896168a9ff155475bfb0b7b66504c7077605
Author: Sergey M․ <dstftw@gmail.com>
Date: Fri, 12 Jul 2019 00:04:25 +0700
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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)