[ustream] Detect https embeds (closes #29133)
authorSergey M․ <dstftw@gmail.com>
Sat, 29 May 2021 20:43:59 +0000 (03:43 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 May 2021 20:43:59 +0000 (03:43 +0700)
youtube_dl/extractor/ustream.py

index 9e860aeb761aae86de24b20ce29c6250c4ff52bf..1e29cbe224ad73e4e0b03a4a0fba1f090ed3601c 100644 (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')