projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68923e5
)
[yinyuetai] Add test for h5/ part in _VALID_URL
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 8 Jul 2015 16:50:32 +0000
(
00:50
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 8 Jul 2015 16:50:32 +0000
(
00:50
+0800)
youtube_dl/extractor/yinyuetai.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/yinyuetai.py
b/youtube_dl/extractor/yinyuetai.py
index 661c346027643c3dca8b1b98e3eeac5f77a71f71..41ee89da44fbcb25c13ffc28409671936c6fd9fd 100644
(file)
--- 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]+)'
class YinYueTaiIE(InfoExtractor):
IE_NAME = 'yinyuetai:video'
_VALID_URL = r'https?://v\.yinyuetai\.com/video(/h5)?/(?P<id>[0-9]+)'
- _TEST
=
{
+ _TEST
S = [
{
'url': 'http://v.yinyuetai.com/video/2322376',
'md5': '6e3abe28d38e3a54b591f9f040595ce0',
'info_dict': {
'url': 'http://v.yinyuetai.com/video/2322376',
'md5': '6e3abe28d38e3a54b591f9f040595ce0',
'info_dict': {
@@
-17,7
+17,10
@@
class YinYueTaiIE(InfoExtractor):
'title': '少女时代_PARTY_Music Video Teaser',
'creator': '少女时代',
},
'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)
def _real_extract(self, url):
video_id = self._match_id(url)