#! /bin/sh
# Shell script to get informations about the current song playing in Amarok

#Amarok is launched ?
AMAROK=`ps aux | grep amarokapp | grep -v grep | grep -v info`
if [ -n "$AMAROK" ]
then
	#Yes so we get the info
	dcop amarok player status
	dcop amarok player title
	dcop amarok player artist
	dcop amarok player encodedURL
	dcop amarok player coverImage
else
	#No so we set to state stopped
	echo 0
fi

exit 0
