|
|
@ -161,6 +161,8 @@ class YoutubeDL(object):
|
|
|
|
forcejson: Force printing info_dict as JSON.
|
|
|
|
forcejson: Force printing info_dict as JSON.
|
|
|
|
dump_single_json: Force printing the info_dict of the whole playlist
|
|
|
|
dump_single_json: Force printing the info_dict of the whole playlist
|
|
|
|
(or video) as a single JSON line.
|
|
|
|
(or video) as a single JSON line.
|
|
|
|
|
|
|
|
force_write_download_archive: Force writing download archive regardless of
|
|
|
|
|
|
|
|
'skip_download' or 'simulate'.
|
|
|
|
simulate: Do not download the video files.
|
|
|
|
simulate: Do not download the video files.
|
|
|
|
format: Video format code. See options.py for more information.
|
|
|
|
format: Video format code. See options.py for more information.
|
|
|
|
outtmpl: Template for output names.
|
|
|
|
outtmpl: Template for output names.
|
|
|
@ -1805,8 +1807,11 @@ class YoutubeDL(object):
|
|
|
|
# Forced printings
|
|
|
|
# Forced printings
|
|
|
|
self.__forced_printings(info_dict, filename, incomplete=False)
|
|
|
|
self.__forced_printings(info_dict, filename, incomplete=False)
|
|
|
|
|
|
|
|
|
|
|
|
# Do nothing else if in simulate mode
|
|
|
|
|
|
|
|
if self.params.get('simulate', False):
|
|
|
|
if self.params.get('simulate', False):
|
|
|
|
|
|
|
|
if self.params.get('force_write_download_archive', False):
|
|
|
|
|
|
|
|
self.record_download_archive(info_dict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Do nothing else if in simulate mode
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
if filename is None:
|
|
|
|
if filename is None:
|
|
|
@ -2086,6 +2091,9 @@ class YoutubeDL(object):
|
|
|
|
except (PostProcessingError) as err:
|
|
|
|
except (PostProcessingError) as err:
|
|
|
|
self.report_error('postprocessing: %s' % str(err))
|
|
|
|
self.report_error('postprocessing: %s' % str(err))
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
must_record_download_archive = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if must_record_download_archive or self.params.get('force_write_download_archive', False):
|
|
|
|
self.record_download_archive(info_dict)
|
|
|
|
self.record_download_archive(info_dict)
|
|
|
|
|
|
|
|
|
|
|
|
def download(self, url_list):
|
|
|
|
def download(self, url_list):
|
|
|
|