From 7eabb134fc9e77e096cd36b2eeac9d6f410947b2 Mon Sep 17 00:00:00 2001 From: PC Date: Sat, 10 Oct 2015 16:19:57 +0100 Subject: [PATCH] rtmp not working --- youtube_dl/extractor/iol.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/youtube_dl/extractor/iol.py b/youtube_dl/extractor/iol.py index 49ebf2368..1f7f1e032 100644 --- a/youtube_dl/extractor/iol.py +++ b/youtube_dl/extractor/iol.py @@ -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',