]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
enable live status bar via chunked encoding
[serve0] / actions / watch.sh
index 3398b99271fc240fb2b5ecb074b6b4b1fdcd6529..b3463b9aac183627af0c1f04b700f6869e9661f7 100755 (executable)
@@ -55,16 +55,17 @@ case "${_COOKIE[watch]}" in
     [ -n "$info" ]     && playuri="${_DATA}/videos/$info"
 
     fifofile="${_DATA}/mplayer.fifo"
+    statusfile="${_DATA}/mplayer.status"
     volume="$(validate "$(cat "${_DATA}/mplayer.volume")" '[1-9]?[0-9]|100' 20)"
     [ \! -p "$fifofile" ] && rm -f "$fifofile" && mkfifo -m 600 "$fifofile"
 
     debug PLAYURI $playuri
 
     DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 \
-      nohup /usr/bin/mplayer -ao pulse -quiet \
+      nohup /usr/bin/mplayer -ao pulse \
       -slave -input file="$fifofile" \
       -volume "$volume" \
-      "$playuri" >/dev/null 2>/dev/null &
+      "$playuri" >"$statusfile" 2>/dev/null &
 
     # # MPlayer2:
     # DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 \