[kaltura] Fix _VALID_URL formatting
authorSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 14:26:51 +0000 (20:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 14:26:51 +0000 (20:26 +0600)
youtube_dl/extractor/kaltura.py

index c5b9810920c2e1aa474410f8c84fdbb2d5e03c0e..3dca0e566f886888987bfb68360b9a0a51b04575 100644 (file)
@@ -16,8 +16,7 @@ class KalturaIE(InfoExtractor):
                 (?:
                     kaltura:(?P<partner_id_s>\d+):(?P<id_s>[0-9a-z_]+)|
                     https?://
-                    (:?
-                        (?:www|cdnapisec)\.)?kaltura\.com/
+                        (:?(?:www|cdnapisec)\.)?kaltura\.com/
                         (?:
                             (?:
                                 # flash player
@@ -28,8 +27,8 @@ class KalturaIE(InfoExtractor):
                                 html5/html5lib/
                                 (?:[^/]+/)*?entry_id/(?P<id_html5>[0-9a-z_]+)
                                 .*\?.*\bwid=_(?P<partner_id_html5>\d+)
+                            )
                         )
-                    )
                 )
                 '''
     _API_BASE = 'http://cdnapi.kaltura.com/api_v3/index.php?'