mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-28 05:50:01 +08:00
[Dailymotion] Added correct extractor test.
This commit is contained in:
parent
8c1ac1b273
commit
6241b66adc
@ -254,6 +254,14 @@ class DailymotionUserIE(DailymotionPlaylistIE):
|
|||||||
class DailymotionUserHomeIE(DailymotionUserIE):
|
class DailymotionUserHomeIE(DailymotionUserIE):
|
||||||
IE_NAME = 'dailymotion:userhome'
|
IE_NAME = 'dailymotion:userhome'
|
||||||
_VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?P<user>[^/]+)/?$'
|
_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):
|
def _real_extract(self, url):
|
||||||
mobj = re.match(self._VALID_URL, url)
|
mobj = re.match(self._VALID_URL, url)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user