]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Add new field "extractor" to the info dictionary
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Sep 2012 18:48:16 +0000 (20:48 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 27 Sep 2012 18:48:16 +0000 (20:48 +0200)
youtube_dl/FileDownloader.py

index 793fc3daf3545e0ba43efba716d6a6a18db44b23..38c6a519a0e5008c78d80cca2f83b135f98f9713 100644 (file)
@@ -474,8 +474,8 @@ class FileDownloader(object):
                                # Extract information from URL and process it
                                videos = ie.extract(url)
                                for video in videos or []:
+                                       video['extractor'] = ie.IE_NAME
                                        try:
-                                               video['provider'] = ie.IE_NAME
                                                self.increment_downloads()
                                                self.process_info(video)
                                        except UnavailableVideoError: