mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
[nhk] extract rtmpt format
This commit is contained in:
parent
061d1cd948
commit
47cfa00516
@ -69,12 +69,13 @@ def get_clean_field(key):
|
||||
info['formats'] = self._extract_m3u8_formats(
|
||||
'https://nhks-vh.akamaihd.net/i%s/master.m3u8' % audio_path,
|
||||
episode_id, 'm4a', m3u8_id='hls', fatal=False)
|
||||
info['formats'].append({
|
||||
'ext': 'flv',
|
||||
'format_id': 'flv',
|
||||
'url': 'rtmp://flv.nhk.or.jp/ondemand/mp4:flv' + audio_path,
|
||||
'vcodec': 'none',
|
||||
})
|
||||
for proto in ('rtmpt', 'rtmp'):
|
||||
info['formats'].append({
|
||||
'ext': 'flv',
|
||||
'format_id': proto,
|
||||
'url': '%s://flv.nhk.or.jp/ondemand/mp4:flv%s' % (proto, audio_path),
|
||||
'vcodec': 'none',
|
||||
})
|
||||
for f in info['formats']:
|
||||
f['language'] = lang
|
||||
return info
|
||||
|
Loading…
Reference in New Issue
Block a user