diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-09 10:44:55 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-09 10:44:55 +0100 |
commit | f7bc056b5a6a49e274c029d6f959847ee442a033 (patch) | |
tree | 317d14c43eb29ac6ee199e0983e49aa7d4bfc5d3 /youtube_dl/extractor | |
parent | a0f719854463c6f4226e4042dfa80c1b17154e1d (diff) | |
parent | bdb186f3b074f1f7ac0f154be419ca04241add6f (diff) |
Merge remote-tracking branch 'mmue/fix-rtlnow'
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/rtlnow.py | 15 |
1 files 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<hoster>[^/]+)/videos/(?P<play_path>.+)\.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')), |