[kaltura] Extend _VALID_URL (Closes #5081)

This commit is contained in:
Sergey M․ 2015-02-28 00:19:31 +06:00
parent 4ffbf77886
commit bd3749ed69

View File

@ -14,7 +14,7 @@ from ..utils import (
class KalturaIE(InfoExtractor): class KalturaIE(InfoExtractor):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
(?:kaltura:| (?:kaltura:|
https?://(:?www\.)?kaltura\.com/index\.php/kwidget/(?:[^/]+/)*?wid/_ https?://(:?(?:www|cdnapisec)\.)?kaltura\.com/index\.php/kwidget/(?:[^/]+/)*?wid/_
)(?P<partner_id>\d+) )(?P<partner_id>\d+)
(?::| (?::|
/(?:[^/]+/)*?entry_id/ /(?:[^/]+/)*?entry_id/
@ -39,6 +39,10 @@ class KalturaIE(InfoExtractor):
'url': 'http://www.kaltura.com/index.php/kwidget/cache_st/1300318621/wid/_269692/uiconf_id/3873291/entry_id/1_1jc2y3e4', 'url': 'http://www.kaltura.com/index.php/kwidget/cache_st/1300318621/wid/_269692/uiconf_id/3873291/entry_id/1_1jc2y3e4',
'only_matching': True, 'only_matching': True,
}, },
{
'url': 'https://cdnapisec.kaltura.com/index.php/kwidget/wid/_557781/uiconf_id/22845202/entry_id/1_plr1syf3',
'only_matching': True,
},
] ]
def _kaltura_api_call(self, video_id, actions, *args, **kwargs): def _kaltura_api_call(self, video_id, actions, *args, **kwargs):