diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-07-12 00:04:25 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-07-12 00:04:25 +0700 |
commit | 4dcd4b7b163feddc07959ca34cbb29815b354c25 (patch) | |
tree | 929d966fca12981bd42e3bae08d66be1b6bb386d /youtube_dl/extractor/mgtv.py | |
parent | 5fc0896168a9ff155475bfb0b7b66504c7077605 (diff) |
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
Diffstat (limited to 'youtube_dl/extractor/mgtv.py')
-rw-r--r-- | youtube_dl/extractor/mgtv.py | 3 |
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) |