[dailymotion:user] Improve _VALID_URL (Closes #5380)
authorSergey M․ <dstftw@gmail.com>
Wed, 8 Apr 2015 20:25:31 +0000 (02:25 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 8 Apr 2015 20:25:31 +0000 (02:25 +0600)
youtube_dl/extractor/dailymotion.py

index 47d58330b6cfd5b1df32374e9debb11a89347554..7615ecd4ba3a9d55720f697cb792ca01e92bd1df 100644 (file)
@@ -224,7 +224,7 @@ class DailymotionPlaylistIE(DailymotionBaseInfoExtractor):
 
 class DailymotionUserIE(DailymotionPlaylistIE):
     IE_NAME = 'dailymotion:user'
-    _VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/user/(?P<user>[^/]+)'
+    _VALID_URL = r'https?://(?:www\.)?dailymotion\.[a-z]{2,3}/(?:old/)?user/(?P<user>[^/]+)'
     _PAGE_TEMPLATE = 'http://www.dailymotion.com/user/%s/%s'
     _TESTS = [{
         'url': 'https://www.dailymotion.com/user/nqtv',