projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eafa643
)
[pladform] Improve embed detection
author
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jun 2016 16:19:29 +0000
(23:19 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 30 Jun 2016 16:19:29 +0000
(23:19 +0700)
youtube_dl/extractor/pladform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pladform.py
b/youtube_dl/extractor/pladform.py
index bc559d1df289fca39b96f5cfc5519bf6acb8bbb3..77e1211d6095cf17464ce09a27b756157b4931e9 100644
(file)
--- 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')