1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 16:44:32 +01:00

[opencast] formatting code

This commit is contained in:
Daniel Vogt 2020-10-21 20:47:24 +02:00
parent 8508e6962e
commit 0eb21dcea3

View File

@ -58,9 +58,7 @@ class OpencastBaseIE(InfoExtractor):
formats.extend(self._extract_mpd_formats(href, video_id, mpd_id='dash', fatal=False)) formats.extend(self._extract_mpd_formats(href, video_id, mpd_id='dash', fatal=False))
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, 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':
formats.extend(self._extract_f4m_formats(href, video_id, f4m_id='hds', fatal=False)) formats.extend(self._extract_f4m_formats(href, video_id, f4m_id='hds', fatal=False))
@ -80,7 +78,7 @@ 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, 'rtmp_live': True,
'preference': -2 'preference': -2,
} }
) )
extention = m_obj.group('playpath').split(':') extention = m_obj.group('playpath').split(':')