]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vimeo:channel] Add video id to url_result
authorPurdea Andrei <andrei@purdea.ro>
Tue, 21 Jun 2016 21:34:57 +0000 (00:34 +0300)
committerSergey M․ <dstftw@gmail.com>
Wed, 22 Jun 2016 18:26:27 +0000 (01:26 +0700)
This will allow us to decide much faster that we don't want an already archived video,
and will allow having to download webpages for each video that has already been downloaded,
thus significantly speeding up the archival of channels that have no new content.

youtube_dl/extractor/vimeo.py

index 1f163d6a4ce1b8b0069ff5d2bce2bfa889a49709..32490a8ed85a82509d3faea6681cf1e2488ee23b 100644 (file)
@@ -652,7 +652,7 @@ class VimeoChannelIE(VimeoBaseInfoExtractor):
                 yield self._extract_list_title(webpage)
 
             for video_id in re.findall(r'id="clip_(\d+?)"', webpage):
-                yield self.url_result('https://vimeo.com/%s' % video_id, 'Vimeo')
+                yield self.url_result('https://vimeo.com/%s' % video_id, 'Vimeo', video_id=video_id)
 
             if re.search(self._MORE_PAGES_INDICATOR, webpage, re.DOTALL) is None:
                 break