diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-04-19 19:41:06 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-04-19 19:41:06 +0200 |
commit | 52fadd5fb2ea5d7e7cd6000203aa7ef886ffad07 (patch) | |
tree | 9c8caae3790b3237cf78c40facaeb4dd20d103ca /youtube_dl/extractor/extremetube.py | |
parent | 5367fe7f4d8699b711a712598615a815a013fa9c (diff) |
[test_all_urls] Add support for distributed URL matching test definition
Diffstat (limited to 'youtube_dl/extractor/extremetube.py')
-rw-r--r-- | youtube_dl/extractor/extremetube.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/extremetube.py b/youtube_dl/extractor/extremetube.py index d7fc43287..7612a0364 100644 --- a/youtube_dl/extractor/extremetube.py +++ b/youtube_dl/extractor/extremetube.py @@ -10,7 +10,7 @@ from ..utils import ( class ExtremeTubeIE(InfoExtractor): _VALID_URL = r'^(?:https?://)?(?:www\.)?(?P<url>extremetube\.com/.*?video/.+?(?P<videoid>[0-9]+))(?:[/?&]|$)' - _TEST = { + _TESTS = [{ u'url': u'http://www.extremetube.com/video/music-video-14-british-euro-brit-european-cumshots-swallow-652431', u'file': u'652431.mp4', u'md5': u'1fb9228f5e3332ec8c057d6ac36f33e0', @@ -19,7 +19,10 @@ class ExtremeTubeIE(InfoExtractor): u"uploader": u"unknown", u"age_limit": 18, } - } + }, { + 'url': 'http://www.extremetube.com/gay/video/abcde-1234', + 'only_matching': True, + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) |