1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 19:22:06 +00:00

[mgtv] Pass Referer HTTP header for format URLs (closes #21726)

This commit is contained in:
Sergey M․ 2019-07-12 00:04:25 +07:00
parent 5fc0896168
commit 4dcd4b7b16
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -79,6 +79,9 @@ class MGTVIE(InfoExtractor):
'ext': 'mp4',
'tbr': tbr,
'protocol': 'm3u8_native',
'http_headers': {
'Referer': url,
},
})
self._sort_formats(formats)