Skip to content

Commit

Permalink
[kaltura] Improve iframe extraction (#28969)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey M. <[email protected]>
  • Loading branch information
zorbathut and dstftw authored May 4, 2021
1 parent 0204838 commit fe05191
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions youtube_dl/extractor/gdcvault.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ class GDCVaultIE(InfoExtractor):
'format': 'mp4-408',
},
},
{
# Kaltura embed, whitespace between quote and embedded URL in iframe's src
'url': 'https://www.gdcvault.com/play/1025699',
'info_dict': {
'id': '0_zagynv0a',
'ext': 'mp4',
'title': 'Tech Toolbox',
'upload_date': '20190408',
'uploader_id': '[email protected]',
'timestamp': 1554764629,
},
'params': {
'skip_download': True,
},
},
]

def _login(self, webpage_url, display_id):
Expand Down
2 changes: 1 addition & 1 deletion youtube_dl/extractor/kaltura.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _extract_urls(webpage):
''', webpage))
or list(re.finditer(
r'''(?xs)
<(?:iframe[^>]+src|meta[^>]+\bcontent)=(?P<q1>["'])
<(?:iframe[^>]+src|meta[^>]+\bcontent)=(?P<q1>["'])\s*
(?:https?:)?//(?:(?:www|cdnapi(?:sec)?)\.)?kaltura\.com/(?:(?!(?P=q1)).)*\b(?:p|partner_id)/(?P<partner_id>\d+)
(?:(?!(?P=q1)).)*
[?&;]entry_id=(?P<id>(?:(?!(?P=q1))[^&])+)
Expand Down

0 comments on commit fe05191

Please sign in to comment.