]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/FileDownloader.py
Update changelog.
[youtubedl] / youtube_dl / FileDownloader.py
1 # Legacy file for backwards compatibility, use youtube_dl.downloader instead!
2 from .downloader import FileDownloader as RealFileDownloader
3 from .downloader import get_suitable_downloader
4
5
6 # This class reproduces the old behaviour of FileDownloader
7 class FileDownloader(RealFileDownloader):
8 def _do_download(self, filename, info_dict):
9 real_fd = get_suitable_downloader(info_dict)(self.ydl, self.params)
10 for ph in self._progress_hooks:
11 real_fd.add_progress_hook(ph)
12 return real_fd.download(filename, info_dict)