projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a73829
)
[sportbox:embed] Add `_extract_urls`
author
Sergey M․
<dstftw@gmail.com>
Fri, 15 May 2015 17:08:44 +0000
(23:08 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 15 May 2015 17:08:44 +0000
(23:08 +0600)
youtube_dl/extractor/sportbox.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/sportbox.py
b/youtube_dl/extractor/sportbox.py
index 10c45eb7460ffd60baaa8e1f5b8b3e9a3cd672d1..a869a1b25aae6ef50208c4082b87353cf025591c 100644
(file)
--- a/
youtube_dl/extractor/sportbox.py
+++ b/
youtube_dl/extractor/sportbox.py
@@
-91,6
+91,12
@@
class SportBoxEmbedIE(InfoExtractor):
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+src="(https?://news\.sportbox\.ru/vdl/player[^"]+)"',
+ webpage)
+
def _real_extract(self, url):
video_id = self._match_id(url)