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 < `find . -depth -type d | wc -l` ; i=$(( $i+1 )) )); do directory[$i]=`find . -depth -type d | head -$(( $i+1 )) | tail -1` done for (( i=0 ; $i < ${#directory[@]} ; i=$(( $i+1 )) )); do cd ${directory[$i]} for file in `find . -depth -maxdepth 1 -type f ` ; do echo "Chan