#!/bin/bash

killall shell-fm

if [ "$1" = "tag" ]; then
echo "******************************************************"
echo Looking for songs tagged with $2...
echo "******************************************************"
shell-fm "lastfm://globaltags/$2"
fi

if [ "$1" = "artist" ]; then
echo "******************************************************"
echo Looking for songs by $2...
echo "******************************************************"
shell-fm "lastfm://artist/$2"
fi

if [ "$1" = "similar" ]; then
echo "******************************************************"
echo Looking for songs like those by $2...
echo "******************************************************"
shell-fm "lastfm://artist/$2/similarartists"
fi

if [ "$1" = "user" ]; then
echo "******************************************************"
echo Looking for music similar to what $2 likes...
echo "******************************************************"
shell-fm "lastfm://user/$2/neighbours"
fi
