|
@ -91,6 +91,7 @@ class KalturaIE(InfoExtractor): |
|
|
}], |
|
|
}], |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
'skip': 'Gone. Maybe https://www.safaribooksonline.com/library/tutorials/introduction-to-python-anon/3469/', |
|
|
'params': { |
|
|
'params': { |
|
|
'skip_download': True, |
|
|
'skip_download': True, |
|
|
}, |
|
|
}, |
|
@ -108,6 +109,7 @@ class KalturaIE(InfoExtractor): |
|
|
@staticmethod |
|
|
@staticmethod |
|
|
def _extract_url(webpage): |
|
|
def _extract_url(webpage): |
|
|
mobj = ( |
|
|
mobj = ( |
|
|
|
|
|
# Embed codes: https://knowledge.kaltura.com/embedding-kaltura-media-players-your-site |
|
|
re.search( |
|
|
re.search( |
|
|
r"""(?xs) |
|
|
r"""(?xs) |
|
|
kWidget\.(?:thumb)?[Ee]mbed\( |
|
|
kWidget\.(?:thumb)?[Ee]mbed\( |
|
@ -127,7 +129,16 @@ class KalturaIE(InfoExtractor): |
|
|
(?P<q2>["\'])entry_?[Ii]d(?P=q2) |
|
|
(?P<q2>["\'])entry_?[Ii]d(?P=q2) |
|
|
)\s*:\s* |
|
|
)\s*:\s* |
|
|
(?P<q3>["\'])(?P<id>(?:(?!(?P=q3)).)+)(?P=q3) |
|
|
(?P<q3>["\'])(?P<id>(?:(?!(?P=q3)).)+)(?P=q3) |
|
|
''', webpage)) |
|
|
|
|
|
|
|
|
''', webpage) or |
|
|
|
|
|
re.search( |
|
|
|
|
|
r'''(?xs) |
|
|
|
|
|
<iframe[^>]+src=(?P<q1>["\']) |
|
|
|
|
|
(?:https?:)?//(?:www\.)?kaltura\.com/p/(?P<partner_id>\d+)/ |
|
|
|
|
|
(?:(?!(?P=q1)).)* |
|
|
|
|
|
[\?&]entry_id=(?P<id>(?:(?!(?P=q1))[^&])+) |
|
|
|
|
|
(?P=q1) |
|
|
|
|
|
''', webpage) |
|
|
|
|
|
) |
|
|
if mobj: |
|
|
if mobj: |
|
|
embed_info = mobj.groupdict() |
|
|
embed_info = mobj.groupdict() |
|
|
url = 'kaltura:%(partner_id)s:%(id)s' % embed_info |
|
|
url = 'kaltura:%(partner_id)s:%(id)s' % embed_info |
|
|