Update of /cvsroot/gtkpod/gtkpod/scripts
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29156/scripts

Modified Files:
        convert-ogg2mp3.sh 
Log Message:
        * scripts/convert-ogg2mp3.sh: applied Peter Edwards' patch



Index: convert-ogg2mp3.sh
===================================================================
RCS file: /cvsroot/gtkpod/gtkpod/scripts/convert-ogg2mp3.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- convert-ogg2mp3.sh  18 Jan 2007 14:50:06 -0000      1.3
+++ convert-ogg2mp3.sh  24 Jan 2007 14:24:52 -0000      1.4
@@ -14,6 +14,7 @@
 oggfile=$1
 # Build output file
 mp3file=`basename $oggfile`
+mp3file=${mp3file%%.ogg}
 mp3file="/tmp/$mp3file.mp3"
 
 # Default values
@@ -41,9 +42,13 @@
 genre=`ogginfo $oggfile | grep genre= | cut -d = -f 2`
 tracknum=`ogginfo $oggfile | grep tracknumber= | cut -d = -f 2`
 comment_t=`ogginfo $oggfile | grep comment= | cut -d = -f 2`
+comment_a=`ogginfo $oggfile | grep albumcomment= | cut -d = -f 2`
 if [ "$comment_t" != "" ]; then
     comment=$comment_t
 fi
+if [ "$comment_a" != "" ]; then
+    comment="$comment_a $comment"
+fi
 
 #Fix unrecognised genre for lame
 if [ "$genre" != "" ]; then


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to