]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
fix rtlnow for newer series like "Der Bachelor" season 5
authorMarkus Müller <mmu@grummel.net>
Sun, 8 Feb 2015 20:55:39 +0000 (21:55 +0100)
committerMarkus Müller <mmu@grummel.net>
Sun, 8 Feb 2015 20:55:39 +0000 (21:55 +0100)
youtube_dl/extractor/rtlnow.py

index 285c3c4bebf8ec7c2cd793d2b40739222c18a5ca..e235f3c57993d2b051e45e03a1bd078636b27121 100644 (file)
@@ -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')),