1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-20 05:38:46 +08:00

[Dailymotion] Added correct extractor test.

This commit is contained in:
PotcFdk 2015-05-26 15:01:07 +02:00
parent 8c1ac1b273
commit 6241b66adc

View File

@ -254,6 +254,14 @@ class DailymotionUserIE(DailymotionPlaylistIE):
class DailymotionUserHomeIE(DailymotionUserIE):
IE_NAME = 'dailymotion:userhome'
_VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?P<user>[^/]+)/?$'
_TESTS = [{
'url': 'https://www.dailymotion.com/nqtv',
'info_dict': {
'id': 'nqtv',
'title': 'Rémi Gaillard',
},
'playlist_mincount': 100,
}]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)