Browse Source

[dailymotion:user] Fix _VALID_URL (Closes #6346)

master
Sergey M․ 9 years ago
parent
commit
2b2ee140c3
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/dailymotion.py

2
youtube_dl/extractor/dailymotion.py

@ -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',

Loading…
Cancel
Save