Procházet zdrojové kódy

[ustream] Detect https embeds (closes #29133)

Sergey M․ před 4 roky
rodič
revize
2ee6c7f110
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      youtube_dl/extractor/ustream.py

+ 1 - 1
youtube_dl/extractor/ustream.py

@@ -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')