location="$(invalidate "${_GET[l]}" '(.*/)?\.\.(/.*)?|' /)"
directory="${location%/*}"
statusfile="$_DATA/mplayer.status"
+statusfile="/tmp/mplayer.status"
[ -n "$info" ] && video="${_DATA}/videos/$info" \
|| video="${treeroot%/}/${location#/}"
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"