mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-09 11:03:16 +08:00
[parliamentliveuk] Fix kaltura widget config detection
This commit is contained in:
parent
c2b3bd0451
commit
bfe4a2ef8e
@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from .common import InfoExtractor
|
||||
|
||||
from re import DOTALL
|
||||
|
||||
class ParliamentLiveUKIE(InfoExtractor):
|
||||
IE_NAME = 'parliamentlive.tv'
|
||||
@ -29,7 +30,7 @@ class ParliamentLiveUKIE(InfoExtractor):
|
||||
'http://vodplayer.parliamentlive.tv/?mid=' + video_id, video_id)
|
||||
widget_config = self._parse_json(self._search_regex(
|
||||
r'(?s)kWidgetConfig\s*=\s*({.+});',
|
||||
webpage, 'kaltura widget config'), video_id)
|
||||
webpage, 'kaltura widget config', flags=DOTALL), video_id)
|
||||
kaltura_url = 'kaltura:%s:%s' % (
|
||||
widget_config['wid'][1:], widget_config['entry_id'])
|
||||
event_title = self._download_json(
|
||||
|
Loading…
Reference in New Issue
Block a user