aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-09 00:50:32 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-09 00:50:32 +0800
commite2082ea9422aadf7ae2580d9333008279cda51f0 (patch)
treec0a96fe3626adc9e34cec70bd644f79e1f8307d8 /youtube_dl
parent68923e52a36c7eff5dabe5d969f9ff1eac0b5269 (diff)
[yinyuetai] Add test for h5/ part in _VALID_URL
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/yinyuetai.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/yinyuetai.py b/youtube_dl/extractor/yinyuetai.py
index 661c34602..41ee89da4 100644
--- a/youtube_dl/extractor/yinyuetai.py
+++ b/youtube_dl/extractor/yinyuetai.py
@@ -8,7 +8,7 @@ from ..utils import ExtractorError
class YinYueTaiIE(InfoExtractor):
IE_NAME = 'yinyuetai:video'
_VALID_URL = r'https?://v\.yinyuetai\.com/video(/h5)?/(?P<id>[0-9]+)'
- _TEST = {
+ _TESTS = [{
'url': 'http://v.yinyuetai.com/video/2322376',
'md5': '6e3abe28d38e3a54b591f9f040595ce0',
'info_dict': {
@@ -17,7 +17,10 @@ class YinYueTaiIE(InfoExtractor):
'title': '少女时代_PARTY_Music Video Teaser',
'creator': '少女时代',
},
- }
+ }, {
+ 'url': 'http://v.yinyuetai.com/video/h5/2322376',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)