2 # original by: sammy umar
3 # small modifications to leave mplayer untouched
7 # check to see if argument contains http
8 http=`echo $argument | grep http -`
9 # for remote/local files do things differently
10 if [ "$http" != "" ]; then
11 # obtain all the options until the filename/path
12 options=${argument%http*}
14 file=${argument#*http}
15 # extract the extension
17 if [ "$ext" = "asx" ]; then
18 mplayer $options -playlist http$file
23 # if local just do the command line