diff options
author | Yen Chi Hsuan <[email protected]> | 2015-03-31 03:38:45 +0800 |
---|---|---|
committer | Yen Chi Hsuan <[email protected]> | 2015-03-31 03:38:45 +0800 |
commit | 5cbb2699ee04535449e37a07dd9cac9bfd224fe3 (patch) | |
tree | 091cb21a6e2959b1ff43d14f19785ee30fe25b4d /youtube_dl/extractor/nbc.py | |
parent | a2edf2e7ff314eaa3124c1da1b962d054b6d9fff (diff) | |
download | youtube-dl-5cbb2699ee04535449e37a07dd9cac9bfd224fe3.tar.gz youtube-dl-5cbb2699ee04535449e37a07dd9cac9bfd224fe3.zip |
[NBCSports] Add a test case for extended _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/nbc.py')
-rw-r--r-- | youtube_dl/extractor/nbc.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/nbc.py b/youtube_dl/extractor/nbc.py index be9969d12..395f53df3 100644 --- a/youtube_dl/extractor/nbc.py +++ b/youtube_dl/extractor/nbc.py @@ -53,7 +53,7 @@ class NBCIE(InfoExtractor): class NBCSportsVPlayerIE(InfoExtractor): _VALID_URL = r'https?://vplayer\.nbcsports\.com/(?:[^/]+/)+(?P<id>[0-9a-zA-Z_]+)' - _TEST = { + _TESTS = [{ 'url': 'https://vplayer.nbcsports.com/p/BxmELC/nbcsports_share/select/9CsDKds0kvHI', 'md5': 'ceae8dced5c14a1c1ffcb7a32194cca5', 'info_dict': { @@ -62,7 +62,11 @@ class NBCSportsVPlayerIE(InfoExtractor): 'description': 'md5:df390f70a9ba7c95ff1daace988f0d8d', 'title': 'Tyler Kalinoski hits buzzer-beater to lift Davidson', } - } + }, { + 'note': 'This video is already expired. It\'s for testing _VALID_URL', + 'url': 'http://vplayer.nbcsports.com/p/BxmELC/nbc_embedshare/select/_hqLjQ95yx8Z', + 'only_matching': True, + }] @staticmethod def _extract_url(webpage): |