aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-03-04 22:16:42 +0100
committerJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-03-04 22:16:42 +0100
commit631f73978c0ee851950ac697dfd73f9092abd3c3 (patch)
tree6d97dc2e455453620d2005e3cb3ab35ed291b520 /youtube_dl
parentdf8db1aa2107f204fa14c157d7a536e45ceb65c4 (diff)
Add a method for extracting info from a list of urls
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/FileDownloader.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index b26c34729..f668b362b 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -415,6 +415,14 @@ class FileDownloader(object):
raise
if not suitable_found:
self.trouble(u'ERROR: no suitable InfoExtractor: %s' % url)
+ def extract_info_iterable(self, urls):
+ '''
+ Return the videos founded for the urls
+ '''
+ results = []
+ for url in urls:
+ results.extend(self.extract_info(url))
+ return results
def process_info(self, info_dict):
"""Process a single dictionary returned by an InfoExtractor."""