aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-03-05 12:26:18 +0100
committerJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-03-05 12:26:18 +0100
commitf6e6da9525150487476d4990693eedf73acffab1 (patch)
treeddda2d48dad8faefdedea649f5a84415058183a1
parent597cc8a45536aa4207c5ffc3e421fcebf2e08fe6 (diff)
Use extract_info in BlipTV User and Youtube Channel
-rwxr-xr-xyoutube_dl/InfoExtractors.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py
index 8a7694a76..d79f6068f 100755
--- a/youtube_dl/InfoExtractors.py
+++ b/youtube_dl/InfoExtractors.py
@@ -1806,9 +1806,8 @@ class YoutubeChannelIE(InfoExtractor):
self._downloader.to_screen(u'[youtube] Channel %s: Found %i videos' % (channel_id, len(video_ids)))
- for id in video_ids:
- self._downloader.download(['http://www.youtube.com/watch?v=%s' % id])
- return
+ urls = ['http://www.youtube.com/watch?v=%s' % id for id in video_ids]
+ return self._downloader.extract_info_iterable(urls)
class YoutubeUserIE(InfoExtractor):
@@ -1981,8 +1980,8 @@ class BlipTVUserIE(InfoExtractor):
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)))
- for video_id in video_ids:
- self._downloader.download([u'http://blip.tv/'+video_id])
+ urls = [u'http://blip.tv/%s' % video_id for video_id in video_ids]
+ return self._downloader.extract_info_iterable(urls)
class DepositFilesIE(InfoExtractor):