From efac95bcaa5ac687c242214b5c8a29be0794a25e Mon Sep 17 00:00:00 2001 From: PC Date: Sat, 10 Oct 2015 19:16:41 +0100 Subject: [PATCH] IOL RTMP support --- youtube_dl/extractor/iol.py | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/iol.py b/youtube_dl/extractor/iol.py index 1f7f1e032..f0b000870 100644 --- a/youtube_dl/extractor/iol.py +++ b/youtube_dl/extractor/iol.py @@ -64,15 +64,27 @@ class IOLIE(InfoExtractor): 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' - }) + # try rtmp format + if self._html_search_regex(r'