1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[sportbox:embed] Add _extract_urls

This commit is contained in:
Sergey M․ 2015-05-15 23:08:44 +06:00
parent 3a7382950b
commit 1436a6835e

View file

@ -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)