1
0
Fork 0

Update to ytdl-commit-d495292

[ard] Relax _VALID_URL and fix video ids
d495292852

Closes #357
This commit is contained in:
pukkandan 2021-06-01 02:37:01 +05:30
commit 14eb1ee1cb
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
4 changed files with 54 additions and 23 deletions

View file

@ -75,7 +75,7 @@ class UstreamIE(InfoExtractor):
@staticmethod
def _extract_url(webpage):
mobj = re.search(
r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:www\.)?(?:ustream\.tv|video\.ibm\.com)/embed/.+?)\1', webpage)
r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:www\.)?(?:ustream\.tv|video\.ibm\.com)/embed/.+?)\1', webpage)
if mobj is not None:
return mobj.group('url')