[pladform] Improve embed detection
authorSergey M․ <dstftw@gmail.com>
Thu, 30 Jun 2016 16:19:29 +0000 (23:19 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 30 Jun 2016 16:19:29 +0000 (23:19 +0700)
youtube_dl/extractor/pladform.py

index bc559d1df289fca39b96f5cfc5519bf6acb8bbb3..77e1211d6095cf17464ce09a27b756157b4931e9 100644 (file)
@@ -49,7 +49,7 @@ class PladformIE(InfoExtractor):
     @staticmethod
     def _extract_url(webpage):
         mobj = re.search(
-            r'<iframe[^>]+src="(?P<url>(?:https?:)?//out\.pladform\.ru/player\?.+?)"', webpage)
+            r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//out\.pladform\.ru/player\?.+?)\1', webpage)
         if mobj:
             return mobj.group('url')