From bdb186f3b074f1f7ac0f154be419ca04241add6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Markus=20M=C3=BCller?= Date: Sun, 8 Feb 2015 21:55:39 +0100 Subject: [PATCH] fix rtlnow for newer series like "Der Bachelor" season 5 --- youtube_dl/extractor/rtlnow.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/rtlnow.py b/youtube_dl/extractor/rtlnow.py index 285c3c4be..e235f3c57 100644 --- a/youtube_dl/extractor/rtlnow.py +++ b/youtube_dl/extractor/rtlnow.py @@ -134,9 +134,18 @@ class RTLnowIE(InfoExtractor): 'player_url': video_page_url + 'includes/vodplayer.swf', } else: - fmt = { - 'url': filename.text, - } + mobj = re.search(r'.*/(?P[^/]+)/videos/(?P.+)\.f4m', filename.text) + if mobj: + fmt = { + 'url': 'rtmpe://fmspay-fra2.rtl.de/' + mobj.group('hoster'), + 'play_path': 'mp4:' + mobj.group('play_path'), + 'page_url': url, + 'player_url': video_page_url + 'includes/vodplayer.swf', + } + else: + fmt = { + 'url': filename.text, + } fmt.update({ 'width': int_or_none(filename.get('width')), 'height': int_or_none(filename.get('height')), -- 2.22.2