]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[senateisvp] Allow https URL scheme for embeds
authorJohn Hawkinson <jhawk@mit.edu>
Mon, 20 Mar 2017 15:35:13 +0000 (11:35 -0400)
committerSergey M <dstftw@gmail.com>
Mon, 20 Mar 2017 15:35:13 +0000 (23:35 +0800)
youtube_dl/extractor/senateisvp.py

index 387a4f7f6952adcb6d1954106ce580f44cde6e6f..db5ef8b57bba44449cef02bd17eb9dc363c56b15 100644 (file)
@@ -89,7 +89,7 @@ class SenateISVPIE(InfoExtractor):
     @staticmethod
     def _search_iframe_url(webpage):
         mobj = re.search(
-            r"<iframe[^>]+src=['\"](?P<url>http://www\.senate\.gov/isvp/?\?[^'\"]+)['\"]",
+            r"<iframe[^>]+src=['\"](?P<url>https?://www\.senate\.gov/isvp/?\?[^'\"]+)['\"]",
             webpage)
         if mobj:
             return mobj.group('url')