mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 16:36:48 +00:00
[vimeo:album] fix extraction(closes #27079)
This commit is contained in:
parent
4fe190df70
commit
2dbb45ae82
@ -946,6 +946,9 @@ class VimeoAlbumIE(VimeoBaseInfoExtractor):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
album_id = self._match_id(url)
|
album_id = self._match_id(url)
|
||||||
|
viewer = self._download_json(
|
||||||
|
'https://vimeo.com/_rv/viewer', album_id, fatal=False)
|
||||||
|
if not viewer:
|
||||||
webpage = self._download_webpage(url, album_id)
|
webpage = self._download_webpage(url, album_id)
|
||||||
viewer = self._parse_json(self._search_regex(
|
viewer = self._parse_json(self._search_regex(
|
||||||
r'bootstrap_data\s*=\s*({.+?})</script>',
|
r'bootstrap_data\s*=\s*({.+?})</script>',
|
||||||
|
Loading…
Reference in New Issue
Block a user