[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
[youtube-dl] / youtube_dl / extractor / mgtv.py
index 84137df502522a77561fb8d86ebfb8d7febb2b95..7ae2e3c3b7f5d6abfd4eef9b1d40625bed1c3d78 100644 (file)
@@ -79,6 +79,9 @@ class MGTVIE(InfoExtractor):
                 'ext': 'mp4',
                 'tbr': tbr,
                 'protocol': 'm3u8_native',
+                'http_headers': {
+                    'Referer': url,
+                },
             })
         self._sort_formats(formats)