1
0
Fork 0

media download log colors

This commit is contained in:
lightling 2024-02-18 23:50:22 -05:00
parent d76871d3ac
commit 7638c38a6d

View file

@ -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 }); const proc = spawn(`python3 ~/.local/bin/gallery-dl -c ./config.json${!!args ? ' ' + args + ' ' : ' '}-d ${path} "${url}"`, { shell: true });
proc.stdout.on('data', data => { 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 => { proc.stderr.on('data', data => {
error(ctx, data); error(ctx, data);