diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py deleted file mode 100644 index 5c8e676a2..000000000 --- a/youtube_dl/FileDownloader.py +++ /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) diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index cbb053e13..92097f41e 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -63,14 +63,13 @@ __license__ = 'Public Domain' import codecs import io -import locale import optparse import os import random -import re import shlex import sys +from .downloader import FileDownloader from .utils import ( compat_getpass, @@ -90,9 +89,6 @@ from .utils import ( write_string, ) from .update import update_self -from .FileDownloader import ( - FileDownloader, -) from .extractor import gen_extractors from .version import __version__ from .YoutubeDL import YoutubeDL