Browse Source

[pladform] Improve embed detection

master
Sergey M․ 8 years ago
parent
commit
8ff6697861
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/pladform.py

2
youtube_dl/extractor/pladform.py

@ -49,7 +49,7 @@ class PladformIE(InfoExtractor):
@staticmethod @staticmethod
def _extract_url(webpage): def _extract_url(webpage):
mobj = re.search( 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: if mobj:
return mobj.group('url') return mobj.group('url')

Loading…
Cancel
Save