aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-04-21 13:25:04 +0100
committerRemita Amine <remitamine@gmail.com>2019-04-21 13:25:04 +0100
commit47cfa0051641d65894da02d64484055b04f767e0 (patch)
tree7a73994d69964f3833ec189ec1d1ead86da4f712 /youtube_dl/extractor
parent061d1cd9486d1b31cb37e000e8181f7684024798 (diff)
[nhk] extract rtmpt format
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/nhk.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/youtube_dl/extractor/nhk.py b/youtube_dl/extractor/nhk.py
index 727302560..241412f98 100644
--- a/youtube_dl/extractor/nhk.py
+++ b/youtube_dl/extractor/nhk.py
@@ -69,12 +69,13 @@ class NhkVodIE(InfoExtractor):
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