extractors/ext-mpg123
author Stiletto <blasux@blasux.ru>
Sat, 12 Feb 2011 17:03:08 +0300
changeset 6 f0c87fb62b66
child 7 1928f1a1ee5b
permissions -rwxr-xr-x
example updater, two metadata extractors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     1
#!/bin/sh
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     2
echo "$1"
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     3
mpg123 -vtn1 --long-tag "$1" 2>&1|awk '/^\t.*:/ {match($0,"\t(.*): +(.*)",a); print toupper(a[1])":"a[2]; }'
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     4
echo
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     5
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     6