[dailymotion:user] Fix _VALID_URL (Closes #6346)
authorSergey M․ <dstftw@gmail.com>
Thu, 23 Jul 2015 21:40:24 +0000 (03:40 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 23 Jul 2015 21:40:24 +0000 (03:40 +0600)
youtube_dl/extractor/dailymotion.py

index 8fcae7402b95012479ed16c01044615184a5d496..5a498777201e60f72b67cd7fcd0c95c524ed255a 100644 (file)
@@ -302,7 +302,7 @@ class DailymotionPlaylistIE(DailymotionBaseInfoExtractor):
 
 class DailymotionUserIE(DailymotionPlaylistIE):
     IE_NAME = 'dailymotion:user'
-    _VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?:(?:old/)?user/)?(?P<user>[^/]+)$'
+    _VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?!(?:embed|#|video|playlist)/)(?:(?:old/)?user/)?(?P<user>[^/]+)'
     _PAGE_TEMPLATE = 'http://www.dailymotion.com/user/%s/%s'
     _TESTS = [{
         'url': 'https://www.dailymotion.com/user/nqtv',