Skip to content

Commit

Permalink
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and Lamieur committed Aug 3, 2019
1 parent 3710af5 commit 79fc709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions youtube_dl/extractor/mgtv.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def _real_extract(self, url):
'ext': 'mp4',
'tbr': tbr,
'protocol': 'm3u8_native',
'http_headers': {
'Referer': url,
},
})
self._sort_formats(formats)

Expand Down

0 comments on commit 79fc709

Please sign in to comment.