projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
30eb05c
)
[vimeo] improve album videos id extraction(closes #22599)
author
Remita Amine
<remitamine@gmail.com>
Tue, 15 Oct 2019 20:01:59 +0000
(21:01 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Tue, 15 Oct 2019 20:01:59 +0000
(21:01 +0100)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 5dc38e2433524f0a1c54f3604821a4e2efd094c7..9abd59d9859b8ac5e2eb5b12b621d81bb1c6d825 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-938,7
+938,7
@@
class VimeoAlbumIE(VimeoChannelIE):
def _fetch_page(self, album_id, authorizaion, hashed_pass, page):
api_page = page + 1
query = {
def _fetch_page(self, album_id, authorizaion, hashed_pass, page):
api_page = page + 1
query = {
- 'fields': 'link',
+ 'fields': 'link
,uri
',
'page': api_page,
'per_page': self._PAGE_SIZE,
}
'page': api_page,
'per_page': self._PAGE_SIZE,
}
@@
-953,7
+953,9
@@
class VimeoAlbumIE(VimeoChannelIE):
link = video.get('link')
if not link:
continue
link = video.get('link')
if not link:
continue
- yield self.url_result(link, VimeoIE.ie_key(), VimeoIE._match_id(link))
+ uri = video.get('uri')
+ video_id = self._search_regex(r'/videos/(\d+)', uri, 'video_id', default=None) if uri else None
+ yield self.url_result(link, VimeoIE.ie_key(), video_id)
def _real_extract(self, url):
album_id = self._match_id(url)
def _real_extract(self, url):
album_id = self._match_id(url)