diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-06-23 01:56:58 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-06-23 01:56:58 +0700 |
commit | b5eab86c2424ec04d17fac5de9d15574320ea8f1 (patch) | |
tree | 833fcd987ef32e8a2be1ece7e669b6b996e8b5eb /youtube_dl/extractor/vimeo.py | |
parent | c8e3e0974b4ffb6792694336664f90eff38fc762 (diff) |
[vimeo:album] Impove _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 26a3d9931..8ba3f55f4 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -706,7 +706,7 @@ class VimeoUserIE(VimeoChannelIE): class VimeoAlbumIE(VimeoChannelIE): IE_NAME = 'vimeo:album' - _VALID_URL = r'https://vimeo\.com/album/(?P<id>\d+)/?(?:$|[?#])' + _VALID_URL = r'https://vimeo\.com/album/(?P<id>\d+)(?:$|[?#]|/(?!video))' _TITLE_RE = r'<header id="page_header">\n\s*<h1>(.*?)</h1>' _TESTS = [{ 'url': 'https://vimeo.com/album/2632481', @@ -726,6 +726,9 @@ class VimeoAlbumIE(VimeoChannelIE): 'params': { 'videopassword': 'youtube-dl', } + }, { + 'url': 'https://vimeo.com/album/2632481/sort:plays/format:thumbnail', + 'only_matching': True, }] def _page_url(self, base_url, pagenum): |