diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-06-27 20:46:46 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-06-27 20:46:46 +0200 |
commit | 6f5ac90cf314e8e1a7c5c416fb51e3a7b8483e9c (patch) | |
tree | 5858b022ee180d96bbb57ca5c2fb827222c83f8d /youtube_dl/extractor/tudou.py | |
parent | ddbd9035764678fbd698a8e5358a8cfbdfe0dfe9 (diff) |
Move tests to the IE definitions
Diffstat (limited to 'youtube_dl/extractor/tudou.py')
-rw-r--r-- | youtube_dl/extractor/tudou.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/tudou.py b/youtube_dl/extractor/tudou.py index 9ca860ab0..4681a6f79 100644 --- a/youtube_dl/extractor/tudou.py +++ b/youtube_dl/extractor/tudou.py @@ -5,6 +5,14 @@ from .common import InfoExtractor class TudouIE(InfoExtractor): _VALID_URL = r'(?:http://)?(?:www\.)?tudou\.com/(?:listplay|programs)/(?:view|(.+?))/(?:([^/]+)|([^/]+)\.html)' + _TEST = { + u'url': u'http://www.tudou.com/listplay/zzdE77v6Mmo/2xN2duXMxmw.html', + u'file': u'159447792.f4v', + u'md5': u'ad7c358a01541e926a1e413612c6b10a', + u'info_dict': { + u"title": u"\u5361\u9a6c\u4e54\u56fd\u8db3\u5f00\u5927\u811a\u957f\u4f20\u51b2\u540a\u96c6\u9526" + } + } def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) |