Pass --no-warnings to yt-dlp

Notice a warning with -J2 causing git-annex progress output to get slightly
messed up.

Error output would also probably do that, so perhaps it should capture
stderr and only display it when yt-dlp exited nonzero?

This option might also make sense for youtube-dl, I don't have an
installation handy anymore to check.
This commit is contained in:
Joey Hess 2024-02-19 18:35:57 -04:00
parent 729097ea30
commit 70cb41028e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 7 additions and 2 deletions

View file

@ -135,8 +135,12 @@ youtubeDl' url workdir p uo
, Param "--playlist-items", Param "0"
] ++
if isytdlp cmd
then
[ Param "--progress-template"
then
-- Avoid warnings, which go to
-- stderr and may mess up
-- git-annex's display.
[ Param "--no-warnings"
, Param "--progress-template"
, Param progressTemplate
, Param "--print-to-file"
, Param "after_move:filepath"

View file

@ -14,6 +14,7 @@ git-annex (10.20240130) UNRELEASED; urgency=medium
* Added annex.commitmessage-command config.
* pre-commit: Avoid committing the git-annex branch
(except when a commit is made in a view, which changes metadata).
* Pass --no-warnings to yt-dlp.
-- Joey Hess <id@joeyh.name> Mon, 29 Jan 2024 15:59:33 -0400