aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrik <krichbanana@gmail.com>2021-06-23 17:11:02 -0400
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-06-24 22:23:34 +0530
commit4513a41a72224e56b6b6f52712ab5b639f98a63c (patch)
treeb02e972399beb1482fea16b564e00107777cbb28
parent6033d9808dee0991e912c196dc51b18919167027 (diff)
downloadhypervideo-pre-4513a41a72224e56b6b6f52712ab5b639f98a63c.tar.lz
hypervideo-pre-4513a41a72224e56b6b6f52712ab5b639f98a63c.tar.xz
hypervideo-pre-4513a41a72224e56b6b6f52712ab5b639f98a63c.zip
Process videos when using `--ignore-no-formats-error` (#441)
Authored by: krichbanana
-rw-r--r--yt_dlp/YoutubeDL.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index b73030c72..d3e95efab 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -2190,6 +2190,8 @@ class YoutubeDL(object):
raise ExtractorError('Requested format is not available', expected=True)
else:
self.report_warning('Requested format is not available')
+ # Process what we can, even without any available formats.
+ self.process_info(dict(info_dict))
elif download:
self.to_screen(
'[info] %s: Downloading %d format(s): %s' % (
@@ -2354,7 +2356,7 @@ class YoutubeDL(object):
# TODO: backward compatibility, to be removed
info_dict['fulltitle'] = info_dict['title']
- if 'format' not in info_dict:
+ if 'format' not in info_dict and 'ext' in info_dict:
info_dict['format'] = info_dict['ext']
if self._match_entry(info_dict) is not None:
@@ -2369,7 +2371,7 @@ class YoutubeDL(object):
files_to_move = {}
# Forced printings
- self.__forced_printings(info_dict, full_filename, incomplete=False)
+ self.__forced_printings(info_dict, full_filename, incomplete=('format' not in info_dict))
if self.params.get('simulate', False):
if self.params.get('force_write_download_archive', False):