#!/bin/sh
# XMMS-Helper
# ===========
# This small shellscript retrieves file from given URL via GNU Wget
# into /tmp and runs xmms with the file as parameter.
#
# Requires: XMMS and GNU Wget
#
# Installation: cp xmms-helper.sh /usr/bin/ && chmod 755 /usr/bin/xmms-helper.sh
#
# Setup your browser to use "xmms-helper.sh" as helper-application for .pls-files
#

TMPFILE=/tmp/xmms-helper_`id -u -n`.tmp

wget -q -O "$TMPFILE" "$1"
xmms -e "$TMPFILE" -p

