aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-12-27 10:19:44 +0100
committerremitamine <remitamine@gmail.com>2015-12-27 10:19:44 +0100
commit608cc3b85cbe5acc045274c22e3fdaca08b90d45 (patch)
tree62f4d711c230448f8d19d1abe89c3861722b28c2 /youtube_dl
parentbb4b8c57b986ce9aa1f21f437c8e1de98f8cb7bf (diff)
[kaltura] add referrer to m3u8 url
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/kaltura.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py
index 353e960b0..4807c8110 100644
--- a/youtube_dl/extractor/kaltura.py
+++ b/youtube_dl/extractor/kaltura.py
@@ -160,10 +160,11 @@ class KalturaIE(InfoExtractor):
'width': int_or_none(f.get('width')),
'url': video_url,
})
-
+ m3u8_url = info['dataUrl'].replace('format/url', 'format/applehttp')
+ if referrer:
+ m3u8_url += '?referrer=%s' % referrer
m3u8_formats = self._extract_m3u8_formats(
- info['dataUrl'].replace('format/url', 'format/applehttp'),
- entry_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
+ m3u8_url, entry_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
if m3u8_formats:
formats.extend(m3u8_formats)