aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-07-12 00:04:25 +0700
committerSergey M․ <dstftw@gmail.com>2019-07-12 00:04:25 +0700
commit4dcd4b7b163feddc07959ca34cbb29815b354c25 (patch)
tree929d966fca12981bd42e3bae08d66be1b6bb386d
parent5fc0896168a9ff155475bfb0b7b66504c7077605 (diff)
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
-rw-r--r--youtube_dl/extractor/mgtv.py3
1 files changed, 3 insertions, 0 deletions
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)