Remove legacy FileDownloader (Closes #2964)
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 23 Jul 2014 00:47:52 +0000 (02:47 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 23 Jul 2014 00:47:52 +0000 (02:47 +0200)
youtube_dl/FileDownloader.py [deleted file]

diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
deleted file mode 100644 (file)
index 5c8e676..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# Legacy file for backwards compatibility, use youtube_dl.downloader instead!
-from .downloader import FileDownloader as RealFileDownloader
-from .downloader import get_suitable_downloader
-
-
-# This class reproduces the old behaviour of FileDownloader
-class FileDownloader(RealFileDownloader):
-    def _do_download(self, filename, info_dict):
-        real_fd = get_suitable_downloader(info_dict)(self.ydl, self.params)
-        for ph in self._progress_hooks:
-            real_fd.add_progress_hook(ph)
-        return real_fd.download(filename, info_dict)