[vimeo:album] fix extraction(closes #27079)
This commit is contained in:
parent
4fe190df70
commit
2dbb45ae82
|
@ -946,10 +946,13 @@ 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)
|
||||||
webpage = self._download_webpage(url, album_id)
|
viewer = self._download_json(
|
||||||
viewer = self._parse_json(self._search_regex(
|
'https://vimeo.com/_rv/viewer', album_id, fatal=False)
|
||||||
r'bootstrap_data\s*=\s*({.+?})</script>',
|
if not viewer:
|
||||||
webpage, 'bootstrap data'), album_id)['viewer']
|
webpage = self._download_webpage(url, album_id)
|
||||||
|
viewer = self._parse_json(self._search_regex(
|
||||||
|
r'bootstrap_data\s*=\s*({.+?})</script>',
|
||||||
|
webpage, 'bootstrap data'), album_id)['viewer']
|
||||||
jwt = viewer['jwt']
|
jwt = viewer['jwt']
|
||||||
album = self._download_json(
|
album = self._download_json(
|
||||||
'https://api.vimeo.com/albums/' + album_id,
|
'https://api.vimeo.com/albums/' + album_id,
|
||||||
|
|
Loading…
Reference in New Issue