[nhk] extract rtmpt format

This commit is contained in:
Remita Amine 2019-04-21 13:25:04 +01:00
parent 061d1cd948
commit 47cfa00516

View file

@ -69,12 +69,13 @@ class NhkVodIE(InfoExtractor):
info['formats'] = self._extract_m3u8_formats( info['formats'] = self._extract_m3u8_formats(
'https://nhks-vh.akamaihd.net/i%s/master.m3u8' % audio_path, 'https://nhks-vh.akamaihd.net/i%s/master.m3u8' % audio_path,
episode_id, 'm4a', m3u8_id='hls', fatal=False) episode_id, 'm4a', m3u8_id='hls', fatal=False)
info['formats'].append({ for proto in ('rtmpt', 'rtmp'):
'ext': 'flv', info['formats'].append({
'format_id': 'flv', 'ext': 'flv',
'url': 'rtmp://flv.nhk.or.jp/ondemand/mp4:flv' + audio_path, 'format_id': proto,
'vcodec': 'none', 'url': '%s://flv.nhk.or.jp/ondemand/mp4:flv%s' % (proto, audio_path),
}) 'vcodec': 'none',
})
for f in info['formats']: for f in info['formats']:
f['language'] = lang f['language'] = lang
return info return info