projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc0896
)
[mgtv] Pass Referer HTTP header for format URLs (closes #21726)
author
Sergey M․
<dstftw@gmail.com>
Thu, 11 Jul 2019 17:04:25 +0000
(
00:04
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 11 Jul 2019 17:04:25 +0000
(
00:04
+0700)
youtube_dl/extractor/mgtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mgtv.py
b/youtube_dl/extractor/mgtv.py
index 84137df502522a77561fb8d86ebfb8d7febb2b95..7ae2e3c3b7f5d6abfd4eef9b1d40625bed1c3d78 100644
(file)
--- a/
youtube_dl/extractor/mgtv.py
+++ b/
youtube_dl/extractor/mgtv.py
@@
-79,6
+79,9
@@
class MGTVIE(InfoExtractor):
'ext': 'mp4',
'tbr': tbr,
'protocol': 'm3u8_native',
+ 'http_headers': {
+ 'Referer': url,
+ },
})
self._sort_formats(formats)