diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-05-15 23:08:44 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-05-15 23:08:44 +0600 | 
| commit | 1436a6835e0f3489a4c37cca3da5087567b68158 (patch) | |
| tree | d45e10bf0f569ab8b499a9193047d192ba1d7e21 | |
| parent | 3a7382950b6f498f50173c8813f6cb1db3739277 (diff) | |
[sportbox:embed] Add `_extract_urls`
| -rw-r--r-- | youtube_dl/extractor/sportbox.py | 6 | 
1 files changed, 6 insertions, 0 deletions
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'<iframe[^>]+src="(https?://news\.sportbox\.ru/vdl/player[^"]+)"', +            webpage) +      def _real_extract(self, url):          video_id = self._match_id(url)  | 
