1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +01:00

[opencast] Fix RTMP

This commit is contained in:
Daniel Vogt 2020-10-21 20:39:36 +02:00
parent b49ec4214e
commit 16b4448ae0

View File

@ -59,7 +59,7 @@ class OpencastBaseIE(InfoExtractor):
elif transport == 'HLS' or ext == 'm3u8': elif transport == 'HLS' or ext == 'm3u8':
formats.extend( formats.extend(
self._extract_m3u8_formats( self._extract_m3u8_formats(
href, video_id, ext='mp4', m3u8_id='hls', entry_protocol='m3u8_native', fatal=False href, video_id, m3u8_id='hls', entry_protocol='m3u8_native', fatal=False
) )
) )
elif transport == 'HDS' or ext == 'f4m': elif transport == 'HDS' or ext == 'f4m':
@ -79,8 +79,12 @@ class OpencastBaseIE(InfoExtractor):
{ {
'app': m_obj.group('app'), 'app': m_obj.group('app'),
'play_path': m_obj.group('playpath'), 'play_path': m_obj.group('playpath'),
'rtmp_live': True,
} }
) )
extention = m_obj.group('playpath').split(':')
if len(extention) > 1:
track_obj.update({'ext': extention[0]})
audio_info = track.get('audio') audio_info = track.get('audio')
if audio_info is not None: if audio_info is not None: