git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/mp3dirlist
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mp3dirlist')
-rwxr-xr-xbin/mp3dirlist22
1 files changed, 2 insertions, 20 deletions
diff --git a/bin/mp3dirlist b/bin/mp3dirlist
index 41671dc..98ed3cd 100755
--- a/bin/mp3dirlist
+++ b/bin/mp3dirlist
@@ -27,31 +27,13 @@ function m3l_prep_table {
sed 's/========.*/====/g' | sed 's/\t$/\t" "/g' | tr '\n' '\t' |\
sed 's/====/\n====/g;s/====\t/====/g' |\
sed 's/Artist\t//;s/Title\t//;s/Album\t//;s/\(.*\)Year\t/\1/;s/\(.*\)Track\t/\1/' |\
- uniq | sed 's/====//g;s/\ &\ /\ \&amp\;\ /g'
+ uniq | sed 's/====//g;s/\ &\ /\ \&amp\;\ /g' | tr -s '\n' |\
+ sed 's/\t0\t/\t"0"\t/g'
}
exiftool -ext .mp3 -ext .MP3 -ext .wma -ext .WMA -ext .ogg -ext .OGG -lang en -Artist -Title -Album -Year -Track -t -r $SDIR |\
m3l_rm_verb |\
m3l_prep_table |\
- uniq |\
- sed 's/====//g' |\
- sed 's/\ &\ /\ \&amp\;\ /g' |\
- tr -s '\n' |\
- sed 's/\t0\t/\t"0"\t/g' |\
-# awk -F '\t' '{print $2"\t"$1"\t"$3"\t"$4"\t"$5}' | sort -s -t \t -k 1,2 |\
-# awk -F '\t' '{print $3"\t"$1"\t"$2"\t"$4"\t"$5}' | sort -s -t \t -k 1,2 |\
-# awk -F '\t' '{print $3"\t"$2"\t"$1"\t"$4"\t"$5}' | sort -s -t \t -k 1,2 |\
-### sort -s -t \t -k 3,3 | sort -s -t \t -k 2,2 | sort -s -t \t -k 4,4n | sort -s -t \t -k 1,1 |\
-### sort -s -t \t -k 4,4n | sort -u -s -t \t -k 3,3 -k 2,2 -k 4,4n | sort -s -t \t -k 1,1 |\
-### sort -u -s -t \t -k 1,1d -t \t -k 4,4n -t \t -k 2,2d |\
-### sort -u -t \t -k 1,1 -k 4,4 -k 3,3 -k 2,2 |\
-# awk -F '\t' '{print $2"\t"$1"\t"$3"\t"$4"\t"$5}' | sort |\
-# awk -F '\t' '{print $1"\t"$4"\t"$3"\t"$2"\t"$5}' | sort |\
-## sed 's/\(.*\)\/[0-9]\+/\1/' |\
-## sed 's/\(.*\)\t0/\t\1/' |\
-### sort -t \t -k 1,1 -k 2,2n -k 3,3 -k 4,4 |\
-## sort -t \t -k 1,1 -k 2,2n -k 3,3 -k 4,4 |\
-## sort -t \t -k 1,1 |\
sort -t \t -k 1,2 -k 2,3 -k 4,5 -k 3,4 |\
grep -vE "$DIRLISTEX"|\
awk -F '\t' '{print $1"\t"$2"\t"$3}' |\