|
|
@ -189,7 +189,7 @@ class YoutubeDL(object):
|
|
|
|
_num_downloads = None
|
|
|
|
_num_downloads = None
|
|
|
|
_screen_file = None
|
|
|
|
_screen_file = None
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, params=None):
|
|
|
|
def __init__(self, params=None, auto_init=True):
|
|
|
|
"""Create a FileDownloader object with the given options."""
|
|
|
|
"""Create a FileDownloader object with the given options."""
|
|
|
|
if params is None:
|
|
|
|
if params is None:
|
|
|
|
params = {}
|
|
|
|
params = {}
|
|
|
@ -246,6 +246,10 @@ class YoutubeDL(object):
|
|
|
|
|
|
|
|
|
|
|
|
self._setup_opener()
|
|
|
|
self._setup_opener()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if auto_init:
|
|
|
|
|
|
|
|
self.print_debug_header()
|
|
|
|
|
|
|
|
self.add_default_info_extractors()
|
|
|
|
|
|
|
|
|
|
|
|
def add_info_extractor(self, ie):
|
|
|
|
def add_info_extractor(self, ie):
|
|
|
|
"""Add an InfoExtractor object to the end of the list."""
|
|
|
|
"""Add an InfoExtractor object to the end of the list."""
|
|
|
|
self._ies.append(ie)
|
|
|
|
self._ies.append(ie)
|
|
|
|