[sportbox:embed] Add `_extract_urls`
authorSergey M․ <dstftw@gmail.com>
Fri, 15 May 2015 17:08:44 +0000 (23:08 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 15 May 2015 17:08:44 +0000 (23:08 +0600)
youtube_dl/extractor/sportbox.py

index 10c45eb7460ffd60baaa8e1f5b8b3e9a3cd672d1..a869a1b25aae6ef50208c4082b87353cf025591c 100644 (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)