--- /dev/null
+#!/bin/sh
+# original by: sammy umar
+# small modifications to leave mplayer untouched
+
+# store argument
+argument="$*"
+# check to see if argument contains http
+http=`echo $argument | grep http -`
+# for remote/local files do things differently
+if [ "$http" != "" ]; then
+# obtain all the options until the filename/path
+ options=${argument%http*}
+# get the filename
+ file=${argument#*http}
+# extract the extension
+ ext=${file##*.}
+ if [ "$ext" = "asx" ]; then
+ mplayer $options -playlist http$file
+ else
+ mplayer $*
+ fi
+else
+# if local just do the command line
+ mplayer $*
+fi