diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-19 05:36:28 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-11-19 05:36:28 +0530 |
commit | 9222c38182604d0a9826291509e0719b45b3faac (patch) | |
tree | 694f25f108682d331fad516a3c88ac51438e6569 /yt_dlp/YoutubeDL.py | |
parent | 467b6b838737c0907bbc331f96352dda3019afb7 (diff) | |
download | hypervideo-pre-9222c38182604d0a9826291509e0719b45b3faac.tar.lz hypervideo-pre-9222c38182604d0a9826291509e0719b45b3faac.tar.xz hypervideo-pre-9222c38182604d0a9826291509e0719b45b3faac.zip |
[cleanup] Minor cleanup
Closes #1696, Closes #1673
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 197ec11e6..e078e62ef 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -528,7 +528,6 @@ class YoutubeDL(object): self.cache = Cache(self) windows_enable_vt_mode() - # FIXME: This will break if we ever print color to stdout self._allow_colors = { 'screen': not self.params.get('no_color') and supports_terminal_sequences(self._screen_file), 'err': not self.params.get('no_color') and supports_terminal_sequences(self._err_file), @@ -2012,10 +2011,10 @@ class YoutubeDL(object): # TODO: Add allvideo, allaudio etc by generalizing the code with best/worst selector if format_spec == 'all': def selector_function(ctx): - yield from _check_formats(ctx['formats']) + yield from _check_formats(ctx['formats'][::-1]) elif format_spec == 'mergeall': def selector_function(ctx): - formats = list(_check_formats(ctx['formats'])) + formats = list(_check_formats(ctx['formats'][::-1])) if not formats: return merged_format = formats[-1] @@ -3163,7 +3162,7 @@ class YoutubeDL(object): return 'images' else: return default - return f'{res} images' if is_images else res + return f'img {res}' if is_images else res def _format_note(self, fdict): res = '' |