From 7638c38a6d72749de6cc08b7d4451ef9923e55e1 Mon Sep 17 00:00:00 2001 From: Lightling Date: Sun, 18 Feb 2024 23:50:22 -0500 Subject: [PATCH] media download log colors --- lib/dl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dl.js b/lib/dl.js index 3cc9478..289d5c4 100644 --- a/lib/dl.js +++ b/lib/dl.js @@ -114,7 +114,7 @@ export const getUser = (user, path, modeParams) => { const proc = spawn(`python3 ~/.local/bin/gallery-dl -c ./config.json${!!args ? ' ' + args + ' ' : ' '}-d ${path} "${url}"`, { shell: true }); proc.stdout.on('data', data => { - log(ctx, data); + log(ctx, `${data.toString().startsWith('# ') ? '\x1b[90mSkipped ' + data.toString().trim() + '\x1b[0m' : '\x1b[36mDownloaded' + data.toString().trim() + '\x1b[0m'}`); }); proc.stderr.on('data', data => { error(ctx, data);