projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97f5cd
)
[dailymotion:user] Fix _VALID_URL (Closes #6346)
author
Sergey M․
<dstftw@gmail.com>
Thu, 23 Jul 2015 21:40:24 +0000
(
03:40
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 23 Jul 2015 21:40:24 +0000
(
03:40
+0600)
youtube_dl/extractor/dailymotion.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/dailymotion.py
b/youtube_dl/extractor/dailymotion.py
index 8fcae7402b95012479ed16c01044615184a5d496..5a498777201e60f72b67cd7fcd0c95c524ed255a 100644
(file)
--- a/
youtube_dl/extractor/dailymotion.py
+++ b/
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',