git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authormail_redacted_for_web 2014-08-10 01:50:24 +0200
committermail_redacted_for_web 2014-08-10 01:50:24 +0200
commit8ce94d2ac21422dceefc536e6964b64df8008200 (patch)
tree13afe88f8f439dbfeacb6dac2a1772f9e3730c76 /bin
parent58ad9e8d83f599bf3cf749e29a70a41ecadabd5a (diff)
downloadmp3dir2html-8ce94d2ac21422dceefc536e6964b64df8008200.tar.bz2
Finalized prep_table, removed old sort commands
Diffstat (limited to 'bin')
-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}' |\