1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-24 15:27:55 +01:00

rtmp not working

This commit is contained in:
PC 2015-10-10 16:19:57 +01:00
parent 30f17f3b2e
commit 66cad235a6

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',