diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-05-21 15:38:59 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-05-21 15:38:59 +0200 |
| commit | 11ec464f89295c3dd0092b88b98b22e19549fd0d (patch) | |
| tree | 6ba003507f0f389a879e8f13e3dc2256e05da07a | |
| parent | 55df3d46317528391812590f371e0dabfe5b3015 (diff) | |
| download | tidal-dl-ng-11ec464f89295c3dd0092b88b98b22e19549fd0d.tar.gz | |
👷 Silence ffmpeg output. Fixes #103
| -rw-r--r-- | tidal_dl_ng/download.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tidal_dl_ng/download.py b/tidal_dl_ng/download.py index 1d71e33..25c69b1 100644 --- a/tidal_dl_ng/download.py +++ b/tidal_dl_ng/download.py @@ -477,7 +477,7 @@ class Download: def _video_convert(self, path_file: str) -> str: path_file_out = path_file + AudioExtensions.MP4 - result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy").run() + result, _ = ffmpeg.input(path_file).output(path_file_out, map=0, c="copy", loglevel="quiet").run() return path_file_out @@ -485,7 +485,9 @@ class Download: path_media_out = path_media_src + AudioExtensions.FLAC result, _ = ( ffmpeg.input(path_media_src) - .output(path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g") + .output( + path_media_out, map=0, movflags="use_metadata_tags", acodec="copy", map_metadata="0:g", loglevel="quiet" + ) .run() ) |
