From 1436a6835e0f3489a4c37cca3da5087567b68158 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Fri, 15 May 2015 23:08:44 +0600 Subject: [PATCH] [sportbox:embed] Add `_extract_urls` --- youtube_dl/extractor/sportbox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/youtube_dl/extractor/sportbox.py b/youtube_dl/extractor/sportbox.py index 10c45eb74..a869a1b25 100644 --- 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']+src="(https?://news\.sportbox\.ru/vdl/player[^"]+)"', + webpage) + def _real_extract(self, url): video_id = self._match_id(url) -- 2.39.5