mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-19 20:10:25 +00:00
[vimeo:album] Fix extraction for albums with number of videos multiple to page size (closes #28486)
This commit is contained in:
parent
fa6bf0a711
commit
7e79ba7dd6
@ -939,11 +939,15 @@ class VimeoAlbumIE(VimeoBaseInfoExtractor):
|
|||||||
}
|
}
|
||||||
if hashed_pass:
|
if hashed_pass:
|
||||||
query['_hashed_pass'] = hashed_pass
|
query['_hashed_pass'] = hashed_pass
|
||||||
videos = self._download_json(
|
try:
|
||||||
'https://api.vimeo.com/albums/%s/videos' % album_id,
|
videos = self._download_json(
|
||||||
album_id, 'Downloading page %d' % api_page, query=query, headers={
|
'https://api.vimeo.com/albums/%s/videos' % album_id,
|
||||||
'Authorization': 'jwt ' + authorization,
|
album_id, 'Downloading page %d' % api_page, query=query, headers={
|
||||||
})['data']
|
'Authorization': 'jwt ' + authorization,
|
||||||
|
})['data']
|
||||||
|
except ExtractorError as e:
|
||||||
|
if isinstance(e.cause, compat_HTTPError) and e.cause.code == 400:
|
||||||
|
return
|
||||||
for video in videos:
|
for video in videos:
|
||||||
link = video.get('link')
|
link = video.get('link')
|
||||||
if not link:
|
if not link:
|
||||||
|
Loading…
Reference in New Issue
Block a user