commit: 8ff6697861b918ff9221c7dd46a6e1109ad0ef34
parent eafa643715c0989dff927c9a44e837ca62247b4e
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 30 Jun 2016 23:19:29 +0700
[pladform] Improve embed detection
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/pladform.py b/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')