Add dzadd script

This commit is contained in:
lelgenio 2023-04-11 14:43:38 -03:00
parent 76855bedf9
commit 62bd9e6676
5 changed files with 188 additions and 0 deletions

5
scripts/mpdDup Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
mpc playlist -f '%position%\t%file%' |
sort -k 2 |
perl -ne 'm/(.*)\t(.*)/; print "$1\n" if $2 eq $prev; $prev=$2' |
mpc del