Browse Source

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

master
Sergey M․ 5 years ago
parent
commit
4dcd4b7b16
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      youtube_dl/extractor/mgtv.py

+ 3
- 0
youtube_dl/extractor/mgtv.py View File

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


Loading…
Cancel
Save