]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
authorSergey M․ <dstftw@gmail.com>
Thu, 11 Jul 2019 17:04:25 +0000 (00:04 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 11 Jul 2019 17:04:25 +0000 (00:04 +0700)
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)