Posts

Showing posts from April, 2010

Amarok Script to Pana Script converter

I use Pana now in favour of Amarok 1.4. Pana is under active development and includes a fix for the cover fetcher that stopped working some time ago. The next step was to find a way to port the amarok scripts over to Pana. This is easily acheived ( for replay_gain ) anyway with this script: Source: http://air.elementfx.com/phpBB3/viewtopic.php?f=5&t=3#p3 #! /bin/bash FILE=$1 FILENAME=`echo ${FILE##*/}` mkdirerr=$(mktemp) mkdir $FILENAME".tmp" 2> $mkdirerr if [ -n "`cat $mkdirerr`" ]; then cat $mkdirerr exit fi cd $FILENAME".tmp" echo "Extracting files to $FILENAME.tmp/ ..." tar jxvf $FILE &> /dev/null currentdir=`pwd` for (( i=0 ; $i do directory[$i]=`find . -depth -type d | head -$(( $i+1 )) | tail -1` done for (( i=0 ; $i cd ${directory[$i]} for file in `find . -depth -maxdepth 1 -type f ` ; do echo "Changing "$file NEWNAME=`echo $file | sed 's/amarok/pana/g'` sed -i 's/amarok...