diff options
author | Vitaliy Syrchikov <maddoger@gmail.com> | 2015-05-15 16:52:11 +0400 |
---|---|---|
committer | Vitaliy Syrchikov <maddoger@gmail.com> | 2015-05-15 16:52:11 +0400 |
commit | a7b8467ac0baecd02a815b1f57731ae9bb10ab87 (patch) | |
tree | b8cc2104756581863363ff720b87d4a8a37adbe5 /youtube_dl/extractor/sportbox.py | |
parent | c4fc559f45ea5c40409eab44867ff2b4f08976c2 (diff) |
Sportbox extractor fix.
Diffstat (limited to 'youtube_dl/extractor/sportbox.py')
-rw-r--r-- | youtube_dl/extractor/sportbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/sportbox.py b/youtube_dl/extractor/sportbox.py index becdf658f..830220543 100644 --- a/youtube_dl/extractor/sportbox.py +++ b/youtube_dl/extractor/sportbox.py @@ -11,7 +11,7 @@ from ..utils import ( class SportBoxIE(InfoExtractor): - _VALID_URL = r'https?://news\.sportbox\.ru/Vidy_sporta/(?:[^/]+/)+spbvideo_NI\d+_(?P<display_id>.+)' + _VALID_URL = r'https?://news\.sportbox\.ru/(?:[^/]+/)+spbvideo_NI\d+_(?P<display_id>.+)' _TESTS = [ { 'url': 'http://news.sportbox.ru/Vidy_sporta/Avtosport/Rossijskij/spbvideo_NI483529_Gonka-2-zaezd-Obyedinenniy-2000-klassi-Turing-i-S', @@ -50,7 +50,7 @@ class SportBoxIE(InfoExtractor): display_id, 'Downloading player webpage') hls = self._search_regex( - r"var\s+original_hls_file\s*=\s*'([^']+)'", player, 'hls file') + r"sportboxPlayer\.jwplayer_common_params\.file\s*=\s*['\"]+([^\"]+)['\"]+", player, 'hls file') formats = self._extract_m3u8_formats(hls, display_id, 'mp4') |