In mplayer.sh mainly there was a test to see if the target (i.e. url or
filename) exists.  If the target exists then it is a file otherwise it
is an URL.

Code:
--------------------
    
  if [ -e "${10}" ] ; then 
  echo Local File: Launching $app $1 $2 $3 $4 $5 $6 $7 $8 $9 "${10}" ${11} 
"${12}" "${13}" >&2
  
--------------------


This test was created for WMA support (back in SB1 days I think) but in
fact it doesn't work as the wrong arg is often tested as no of args
passed to mplayer.sh can vary.


Another consideration would be to use the conf file specifiers and have
two rules.  In AlienBBC custom-convert.conf - the following is used for
WMA

Code:
--------------------
    
  # F:{PATH=%f}R:{PATH=%F}T:{START=-ss %s}U:{DURATION=-endpos %w}
  
--------------------

I think you may be able to split the - one for "F:" and another for
"R:"  or with one rule define new args depending on "F:" or "R:".


-- 
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=63259

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to