[prosiebensat1] Add rtmpe support
authorSergey M. <dstftw@gmail.com>
Thu, 27 Feb 2014 10:52:52 +0000 (17:52 +0700)
committerSergey M. <dstftw@gmail.com>
Thu, 27 Feb 2014 10:52:52 +0000 (17:52 +0700)
youtube_dl/extractor/prosiebensat1.py

index ec31ee7d1e22cbf526a0d9ed19af03e8357e4663..71d7c772bf5ca5d67cb02854206be1ef7366cde9 100644 (file)
@@ -263,8 +263,9 @@ class ProSiebenSat1IE(InfoExtractor):
             return bitrate / 1000 if bitrate % 1000 == 0 else bitrate
 
         for source in urls_sources:
-            if source['protocol'] == 'rtmp':
-                mobj = re.search(r'^(?P<url>rtmp://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
+            protocol = source['protocol']
+            if protocol == 'rtmp' or protocol == 'rtmpe':
+                mobj = re.search(r'^(?P<url>rtmpe?://[^/]+/(?P<app>[^/]+))/(?P<playpath>.+)$', source['url'])
                 if not mobj:
                     continue
                 formats.append({