1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 08:54:33 +01:00

rtmp not working

This commit is contained in:
PC 2015-10-10 16:19:57 +01:00
parent 1370509543
commit 7eabb134fc

View File

@ -63,6 +63,17 @@ class IOLIE(InfoExtractor):
m3u8_url_default = 'http://video-on-demand.iol.pt/vod_http/mp4:' + multimedia_id + '-L-500k.mp4/playlist.m3u8'
formats_m3u8_default = self._extract_m3u8_formats(m3u8_url_default, video_id, ext='mp4')
formats.extend(formats_m3u8_default)
server = 'video2.iol.pt'
formats.append({
'url': 'rtmp://'+server+'/vod',
'play_path': 'mp4:' + multimedia_id + '-L-500k',
'format_id': 'rtmp-500',
'tbr': 500,
'protocol': 'rtmp',
'ext': 'mp4'
})
formats.append({
'url': 'http://www.iol.pt/videos-file/' + multimedia_id + '-L-500k.mp4',
'format_id': 'http-500',