aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordirkf <[email protected]>2021-07-30 12:58:19 +0100
committerdirkf <[email protected]>2022-02-26 10:29:42 +0000
commit4194d253c0b922addf0439228066cb4fb487bac3 (patch)
tree3b948f969642e18f88d7a6327b08f74348f0d497
parentf8e543c9063c1c7ad157936cb6a15b428ddb3896 (diff)
downloadyoutube-dl-4194d253c0b922addf0439228066cb4fb487bac3.tar.gz
youtube-dl-4194d253c0b922addf0439228066cb4fb487bac3.zip
Avoid skipping ID when unlisted_hash is numeric
Pattern needed a non-greedy match; also replaced a redundant test with one for this, issue 29690
-rw-r--r--youtube_dl/extractor/vimeo.py24
1 files changed, 19 insertions, 5 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 0b386f450..a66912502 100644
--- a/youtube_dl/extractor/vimeo.py
+++ b/youtube_dl/extractor/vimeo.py
@@ -271,7 +271,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
)?
vimeo(?:pro)?\.com/
(?!(?:channels|album|showcase)/[^/?#]+/?(?:$|[?#])|[^/]+/review/|ondemand/)
- (?:.*?/)?
+ (?:.*?/)??
(?:
(?:
play_redirect_hls|
@@ -518,13 +518,27 @@ class VimeoIE(VimeoBaseInfoExtractor):
'only_matching': True,
},
{
- 'url': 'https://vimeo.com/160743502/abd0e13fb4',
- 'only_matching': True,
- },
- {
# requires passing unlisted_hash(a52724358e) to load_download_config request
'url': 'https://vimeo.com/392479337/a52724358e',
'only_matching': True,
+ },
+ {
+ # similar, but all numeric: ID must be 581039021, not 9603038895
+ # issue #29690
+ 'url': 'https://vimeo.com/581039021/9603038895',
+ 'info_dict': {
+ 'id': '581039021',
+ # these have to be provided but we don't care
+ 'ext': 'mp4',
+ 'timestamp': 1627621014,
+ 'title': 're:.+',
+ 'uploader_id': 're:.+',
+ 'uploader': 're:.+',
+ 'upload_date': r're:\d+',
+ },
+ 'params': {
+ 'skip_download': True,
+ },
}
# https://gettingthingsdone.com/workflowmap/
# vimeo embed with check-password page protected by Referer header