--- a/cos Sat Jun 18 16:12:00 2011 +0400
+++ b/cos Thu Sep 22 13:27:23 2011 +0400
@@ -4,6 +4,9 @@
S="$1"
shift
case "$S" in
+ "")
+ echo "Usage: $0 <command> [parameters]"
+ ;;
"xmms")
$COSPATH/cos-search $COSPATH/fuck "$@"|cut -f2|while read fname; do echo "$fname"; xmmsctrl +file "$fname"; done
;;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/extractors/ext-cue Thu Sep 22 13:27:23 2011 +0400
@@ -0,0 +1,4 @@
+#!/bin/bash
+echo "$1"
+cueprint -t 'TRACK:%n\nARRANGER:%a\nCOMPOSER:%c\nGENRE:%g\nISRC:%i\nMESSAGE:%m\nARTIST:%p\nTITLE:%t\nEXTRACTOR:cue\n' "$1" 2>/dev/null
+echo
--- a/extractors/ext-mpg123 Sat Jun 18 16:12:00 2011 +0400
+++ b/extractors/ext-mpg123 Thu Sep 22 13:27:23 2011 +0400
@@ -16,6 +16,7 @@
fi
fi
rm -f $TFILE $TFILE2
+echo "EXTRACTOR:mpg123"
echo
--- a/extractors/extractor-taglib.cxx Sat Jun 18 16:12:00 2011 +0400
+++ b/extractors/extractor-taglib.cxx Thu Sep 22 13:27:23 2011 +0400
@@ -70,6 +70,7 @@
cout << "CHANNELS:" << properties->channels() << endl;
cout << "LENGTH:" << minutes << ":" << formatSeconds(seconds) << endl;
}
+ cout << "EXTRACTOR: taglib" << endl;
cout << endl;
}
return 0;
--- a/scanscript.sh Sat Jun 18 16:12:00 2011 +0400
+++ b/scanscript.sh Thu Sep 22 13:27:23 2011 +0400
@@ -2,9 +2,14 @@
PROGDIR=$(dirname $(readlink -f $0))
find "$1" -type f| while read fname; do
EXT="${fname/*./}"
- if [ "$EXT" == "mp3" ];then
- $PROGDIR/extractors/ext-mpg123 "$fname"
- else
+ case "$EXT" in
+ mp3)
+ $PROGDIR/extractors/ext-mpg123 "$fname"
+ ;;
+ cue)
+ $PROGDIR/extractors/ext-cue "$fname"
+ ;;
+ *)
true #$PROGDIR/extractors/ext-taglib "$fname"
- fi
+ esac
done