1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[vimeo:album] Impove _VALID_URL

This commit is contained in:
Sergey M․ 2016-06-23 01:56:58 +07:00
parent c8e3e0974b
commit b5eab86c24
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -706,7 +706,7 @@ def _real_extract(self, url):
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):