projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vuclip] Fix extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
sportbox.py
diff --git
a/youtube_dl/extractor/sportbox.py
b/youtube_dl/extractor/sportbox.py
index 10c45eb7460ffd60baaa8e1f5b8b3e9a3cd672d1..8686f9d11fa3178eefe3eb71fe5a1413e729beeb 100644
(file)
--- a/
youtube_dl/extractor/sportbox.py
+++ b/
youtube_dl/extractor/sportbox.py
@@
-91,6
+91,12
@@
class SportBoxEmbedIE(InfoExtractor):
'only_matching': True,
}]
'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)
def _real_extract(self, url):
video_id = self._match_id(url)
@@
-107,7
+113,7
@@
class SportBoxEmbedIE(InfoExtractor):
thumbnail = self._search_regex(
r'sportboxPlayer\.jwplayer_common_params\.image\s*=\s*"([^"]+)"',
thumbnail = self._search_regex(
r'sportboxPlayer\.jwplayer_common_params\.image\s*=\s*"([^"]+)"',
- webpage, 'thumbnail',
fatal=Fals
e)
+ webpage, 'thumbnail',
default=Non
e)
return {
'id': video_id,
return {
'id': video_id,