Make rbtadd work outside of the LAN.
[utils.git] / planime
diff --git a/planime b/planime
index 2fca326..ed79ec9 100755 (executable)
--- a/planime
+++ b/planime
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 isnum() {
     grep -xq '[0-9]\+' <<<"$1"
@@ -35,7 +35,7 @@ findfile() {
 }
 
 origargs=("$0" "$@")
-cmdline=(mplayer -fs)
+cmdline=(mplayer -fs -ass)
 
 while [ "${1:0:1}" = - ]; do
     a="$1"
@@ -48,6 +48,16 @@ while [ "${1:0:1}" = - ]; do
        -t)
            cmdline=("${cmdline[@]}" -ao oss:/dev/dsp1)
            ;;
+       -A)
+           while :; do
+               a="$1"
+               shift
+               if [ "$a" = \; ]; then
+                   break;
+               fi
+               cmdline=("${cmdline[@]}" "$a")
+           done
+           ;;
        -s)
            savepar="$1"
            shift