]> git.plutz.net Git - serve0/blobdiff - pages/playctl.sh
fix status bar bug in some android versions, show status bar time when pausing
[serve0] / pages / playctl.sh
index 79122fd00d9f4f5ea370abdc33ec4b3883b471b3..16e67a563a6b55d5bb376f4a5e0cc96c9690ca44 100755 (executable)
@@ -23,6 +23,7 @@ info="${_GET[i]}"
 location="$(invalidate "${_GET[l]}" '(.*/)?\.\.(/.*)?|' /)"
 directory="${location%/*}"
 statusfile="$_DATA/mplayer.status"
+statusfile="/tmp/mplayer.status"
 
 [ -n "$info" ] && video="${_DATA}/videos/$info" \
                || video="${treeroot%/}/${location#/}"
@@ -41,7 +42,7 @@ printf 'Refresh: 1\r\n'
 progress(){
   cr="$(printf \\r)"
 
-  tail --pid=$$ -c0 -f "$statusfile" \
+  tail --pid=$$ -c100 -f "$statusfile" \
   | while read -d "$cr" line; do
     [ $line = "BREAK" ] && exit 0
     printf '%s\n' "$line"