Browse Source

[nhk] Update m3u8 URL and use native hls (#24329)

master
Sergey M․ 5 years ago
parent
commit
541fe3eaff
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/nhk.py

+ 3
- 2
youtube_dl/extractor/nhk.py View File

@ -85,8 +85,9 @@ class NhkVodIE(InfoExtractor):
audio = episode['audio'] audio = episode['audio']
audio_path = audio['audio'] audio_path = audio['audio']
info['formats'] = self._extract_m3u8_formats( 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)
'https://nhkworld-vh.akamaihd.net/i%s/master.m3u8' % audio_path,
episode_id, 'm4a', entry_protocol='m3u8_native',
m3u8_id='hls', fatal=False)
for f in info['formats']: for f in info['formats']:
f['language'] = lang f['language'] = lang
return info return info

Loading…
Cancel
Save