1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

Let read_stdin obey --quiet

Closes #8668
This commit is contained in:
pukkandan
2023-11-29 03:18:17 +05:30
parent 15f22b4880
commit a174c453ee
2 changed files with 9 additions and 6 deletions

View File

@ -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