X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fsportbox.py;h=8686f9d11fa3178eefe3eb71fe5a1413e729beeb;hb=5d8dcb5342c97b05c037c8c4e80002540db261b8;hp=10c45eb7460ffd60baaa8e1f5b8b3e9a3cd672d1;hpb=3a7382950b6f498f50173c8813f6cb1db3739277;p=youtube-dl diff --git a/youtube_dl/extractor/sportbox.py b/youtube_dl/extractor/sportbox.py index 10c45eb74..8686f9d11 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) @@ -107,7 +113,7 @@ class SportBoxEmbedIE(InfoExtractor): thumbnail = self._search_regex( r'sportboxPlayer\.jwplayer_common_params\.image\s*=\s*"([^"]+)"', - webpage, 'thumbnail', fatal=False) + webpage, 'thumbnail', default=None) return { 'id': video_id,