Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Quiet mode combined with progress/current job state #66

Closed
3 tasks done
undaunt opened this issue Feb 9, 2021 · 4 comments
Closed
3 tasks done
Labels
PR-needed Features that maintainers will not work on; but PRs are welcome

Comments

@undaunt
Copy link

undaunt commented Feb 9, 2021

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running yt-dlp version 2021.02.04
  • I've searched the bugtracker for similar feature requests including closed ones

Description

I'm wondering if a 'current status' kind of output, similar to rsync's info=progress2 flag, of what is happening could be output to the console while combined with quiet mode. Essentially, instead of having a big block of text of log output, only show and refresh in-place what is currently happening, using maybe 5-10 lines of space.

I found this - https://stackoverflow.com/questions/63025605/how-to-show-only-progress-information-with-youtube-dl

Additionally, there are several different requests for vaguely related things on the parent, but this one is new and seems very similar ytdl-org/youtube-dl#27333

@pukkandan
Copy link
Member

The printing functions of youtube-dl are all over the place (and needs refactoring). I wouldn't know where to even start to implement this.

Maybe someone else will be interested in implementing this. If not, I will get back to this once I am done with all the other projects

@pukkandan pukkandan added the PR-needed Features that maintainers will not work on; but PRs are welcome label Feb 9, 2021
@pukkandan
Copy link
Member

I forgot to link this issue with #1125. But since that PR, you can use --quiet --progress to show progress bar in quiet mode

@TowardMyth
Copy link

TowardMyth commented Oct 20, 2021

Hi @pukkandan thanks for implementing this fix. Now, when I call on yt-dlp in a Python script, and set quiet=True in the ydl_opts dictionary, a progress bar will still show up despite quiet=True (I did not specify progress). Could you make it so that:

  1. If quiet=True and progress=True, then a progress bar is shown
  2. Else if quiet=True and progress=False or progress is not specified, then a progress bar is not shown?

@pukkandan
Copy link
Member

pukkandan commented Oct 20, 2021

The default of noprogress is False. Set noprogress=True to not show progress bar

I will see if I can tie the default of noprogress to quiet since progress doesnt show in youtube-dl when quiet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-needed Features that maintainers will not work on; but PRs are welcome
Projects
None yet
Development

No branches or pull requests

3 participants