Use extract_info in BlipTV User and Youtube Channel

This commit is contained in:
Jaime Marquínez Ferrándiz 2013-03-05 12:26:18 +01:00
parent 597cc8a455
commit f6e6da9525

View file

@ -1806,9 +1806,8 @@ def _real_extract(self, url):
self._downloader.to_screen(u'[youtube] Channel %s: Found %i videos' % (channel_id, len(video_ids))) self._downloader.to_screen(u'[youtube] Channel %s: Found %i videos' % (channel_id, len(video_ids)))
for id in video_ids: urls = ['http://www.youtube.com/watch?v=%s' % id for id in video_ids]
self._downloader.download(['http://www.youtube.com/watch?v=%s' % id]) return self._downloader.extract_info_iterable(urls)
return
class YoutubeUserIE(InfoExtractor): class YoutubeUserIE(InfoExtractor):
@ -1981,8 +1980,8 @@ def _real_extract(self, url):
self._downloader.to_screen(u"[%s] user %s: Collected %d video ids (downloading %d of them)" % self._downloader.to_screen(u"[%s] user %s: Collected %d video ids (downloading %d of them)" %
(self.IE_NAME, username, all_ids_count, len(video_ids))) (self.IE_NAME, username, all_ids_count, len(video_ids)))
for video_id in video_ids: urls = [u'http://blip.tv/%s' % video_id for video_id in video_ids]
self._downloader.download([u'http://blip.tv/'+video_id]) return self._downloader.extract_info_iterable(urls)
class DepositFilesIE(InfoExtractor): class DepositFilesIE(InfoExtractor):