Skip to content

Commit

Permalink
Avoid skipping ID when unlisted_hash is numeric
Browse files Browse the repository at this point in the history
Pattern needed a non-greedy match; also replaced a redundant test with one for this, issue 29690
  • Loading branch information
dirkf committed Jul 30, 2021
1 parent a803582 commit 188b7b1
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions youtube_dl/extractor/vimeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class VimeoIE(VimeoBaseInfoExtractor):
)?
vimeo(?:pro)?\.com/
(?!(?:channels|album|showcase)/[^/?#]+/?(?:$|[?#])|[^/]+/review/|ondemand/)
(?:.*?/)?
(?:.*?/)??
(?:
(?:
play_redirect_hls|
Expand Down Expand Up @@ -517,14 +517,22 @@ class VimeoIE(VimeoBaseInfoExtractor):
'url': 'https://vimeo.com/7809605',
'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',
'ext': 'mp4',
},
'params': {
'skip_download': True,
},
}
# https://gettingthingsdone.com/workflowmap/
# vimeo embed with check-password page protected by Referer header
Expand Down

0 comments on commit 188b7b1

Please sign in to comment.