mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-16 20:31:05 +02:00
[kaltura] add referrer to m3u8 url
This commit is contained in:
parent
bb4b8c57b9
commit
608cc3b85c
@ -160,10 +160,11 @@ def _real_extract(self, url):
|
|||||||
'width': int_or_none(f.get('width')),
|
'width': int_or_none(f.get('width')),
|
||||||
'url': video_url,
|
'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(
|
m3u8_formats = self._extract_m3u8_formats(
|
||||||
info['dataUrl'].replace('format/url', 'format/applehttp'),
|
m3u8_url, entry_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
|
||||||
entry_id, 'mp4', 'm3u8_native', m3u8_id='hls', fatal=False)
|
|
||||||
if m3u8_formats:
|
if m3u8_formats:
|
||||||
formats.extend(m3u8_formats)
|
formats.extend(m3u8_formats)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user