Explorar el Código

[pladform] Improve embed detection

Sergey M․ hace 9 años
padre
commit
8ff6697861
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      youtube_dl/extractor/pladform.py

+ 1 - 1
youtube_dl/extractor/pladform.py

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