aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils/_utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-11-29 03:18:17 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-11-29 05:48:40 +0530
commita174c453ee1e853c584ceadeac17eef2bd433dc5 (patch)
tree04cc36b7ed05b804bf570049cc5f0e78b39c094e /yt_dlp/utils/_utils.py
parent15f22b4880b6b3f71f350c64d70976ae65b9f1ca (diff)
Let `read_stdin` obey `--quiet`
Closes #8668
Diffstat (limited to 'yt_dlp/utils/_utils.py')
-rw-r--r--yt_dlp/utils/_utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/utils/_utils.py b/yt_dlp/utils/_utils.py
index b0164a895..f1d7cead6 100644
--- a/yt_dlp/utils/_utils.py
+++ b/yt_dlp/utils/_utils.py
@@ -4789,8 +4789,9 @@ def parse_http_range(range):
def read_stdin(what):
- eof = 'Ctrl+Z' if compat_os_name == 'nt' else 'Ctrl+D'
- write_string(f'Reading {what} from STDIN - EOF ({eof}) to end:\n')
+ if what:
+ eof = 'Ctrl+Z' if compat_os_name == 'nt' else 'Ctrl+D'
+ write_string(f'Reading {what} from STDIN - EOF ({eof}) to end:\n')
return sys.stdin