ncmpcpp: Fix broken change script

It turns out that we actually *do* need to 2>/dev/null.
This commit is contained in:
Donovan Glover 2024-04-04 19:40:09 -04:00
parent a6f2c58d51
commit 107b5c79d6
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -32,7 +32,7 @@ in
metaflac --export-picture-to=/tmp/cover.jpg \
"$(mpc --format "${musicDirectory}"/%file% current)" && cover_path="/tmp/cover.jpg" && return
else
ffmpeg -y -i "$(mpc --format "${musicDirectory}"/%file% | head -n 1)"} \
ffmpeg -y -i "$(mpc --format "${musicDirectory}"/%file% | head -n 1)" \
/tmp/cover.jpg && cover_path="/tmp/cover.jpg" && return
fi
@ -41,7 +41,8 @@ in
cover_path=$(find "$album" -maxdepth 1 | grep -m 1 ".*\.\(jpg\|png\|gif\|bmp\)")
}
find_cover && notify-send -i "''${cover_path:-${fallbackImage}}" "Now Playing" "$(mpc current)"
find_cover 2>/dev/null
notify-send -i "''${cover_path:-${fallbackImage}}" "Now Playing" "$(mpc current)" 2>/dev/null
'';
};