1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 15:25:07 -04:00

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
parent 879e7199bb
commit 14eb1ee1cb
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')