fix(ags player): filter out warnings from JSON color output

This commit is contained in:
matt1432 2023-10-12 23:00:21 -04:00
parent 69090fa7c5
commit d8780ddf23

View file

@ -35,7 +35,7 @@ export const CoverArt = (player, params) => CenterBox({
properties: [['bgStyle', '']],
connections: [
[player, box => {
execAsync(['bash', '-c', `[[ -f "${player.coverPath}" ]] && coloryou "${player.coverPath}"`])
execAsync(['bash', '-c', `[[ -f "${player.coverPath}" ]] && coloryou "${player.coverPath}" | grep -v Warning`])
.then(out => {
if (!Mpris.players.find(p => player === p))
return;