]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Lower case keys master
authorSergey Matveev <stargrave@stargrave.org>
Sun, 11 May 2025 16:53:36 +0000 (19:53 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 11 May 2025 16:53:36 +0000 (19:53 +0300)
bin/bin/music-indexer

index a1e837e876ab933139dde2112297f3f9dc7086e3..3a6bc9665f321cff66fdca26d837b02f06834ebf 100755 (executable)
@@ -1,11 +1,11 @@
 #!/usr/bin/env zsh
 
 cat <<EOF
-%rec: Album
-%mandatory: Artist Album
-%allowed: Year Collection Lossless
-%type: Year int
-%type: Lossless bool
+%rec: album
+%mandatory: artist album
+%allowed: year col lossless
+%type: year int
+%type: lossless bool
 
 EOF
 
@@ -38,10 +38,10 @@ for name (*~cols) {
     cols=()
     for col ($COLS) [[ -e cols/$col/$name ]] && cols=($cols $col)
 
-    print "Artist: ${(j/-/)artist:gs/_/ /}"
-    [[ -n $year ]] && print "Year: $year"
-    print "Album: ${(j/-/)album:gs/_/ /}"
-    [[ -n $lossless ]] && print "Lossless: yes"
-    for col ($cols) print "Collection: $col"
+    print "artist: ${(j/-/)artist:gs/_/ /}"
+    [[ -n $year ]] && print "year: $year"
+    print "album: ${(j/-/)album:gs/_/ /}"
+    [[ -n $lossless ]] && print "lossless: yes"
+    for col ($cols) print "col: $col"
     print
 }