From 94370b149fa505c9aeb2c37996419fd7f91588d1 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 10 Aug 2024 14:47:00 +0200 Subject: fix(pkgs/mpc): Update the new music handling system --- pkgs/by-name/mp/mpc-rm/mpc-rm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgs/by-name/mp/mpc-rm/mpc-rm.sh') diff --git a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh b/pkgs/by-name/mp/mpc-rm/mpc-rm.sh index 94e0634b..3209503c 100755 --- a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh +++ b/pkgs/by-name/mp/mpc-rm/mpc-rm.sh @@ -3,8 +3,9 @@ # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH -cd "$XDG_MUSIC_DIR" || die "No music dir!" -trash-put "$(mpc --format '%file%' current)" +beet remove --delete \ + title:"$(mpc --format '%title%' current)" \ + album:"$(mpc --format '%album%' current)" mpc del 0 # vim: ft=sh -- cgit 1.4.1