- course_id = mobj.group('course_id')
- part = mobj.group('part')
-
- webpage = self._download_webpage(url, '%s/%s' % (course_id, part))
- reference_id = self._search_regex(r'data-reference-id="([^"]+)"', webpage, 'kaltura reference id')
- partner_id = self._search_regex(r'data-partner-id="([^"]+)"', webpage, 'kaltura widget id')
- ui_id = self._search_regex(r'data-ui-id="([^"]+)"', webpage, 'kaltura uiconf id')
+ video_id = '%s/%s' % (mobj.group('course_id'), mobj.group('part'))
+
+ webpage = self._download_webpage(url, video_id)
+ reference_id = self._search_regex(
+ r'data-reference-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
+ webpage, 'kaltura reference id', group='id')
+ partner_id = self._search_regex(
+ r'data-partner-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
+ webpage, 'kaltura widget id', group='id')
+ ui_id = self._search_regex(
+ r'data-ui-id=(["\'])(?P<id>(?:(?!\1).)+)\1',
+ webpage, 'kaltura uiconf id', group='id')