X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=actions%2Fwatch.sh;h=c0cdb377c8904d5849335fbdf4b4c834f34f8054;hb=7bf56bff8e30ea23047422e05d1ef5352ea9cc31;hp=8f1a18d272a04ad3e22fb291e805bcf8a33f379a;hpb=0619bc447c21ac196734848ae3b0aa786b6eb1ee;p=serve0 diff --git a/actions/watch.sh b/actions/watch.sh index 8f1a18d..c0cdb37 100755 --- a/actions/watch.sh +++ b/actions/watch.sh @@ -47,6 +47,10 @@ case "${_COOKIE[watch]}" in download) redirect "$videourl" ;; + server) + DISPLAY=:0 nohup /usr/bin/mplayer -ao pulse:jupiter --quiet "${_DATA}/videos/$info" >&- 2>&- & + redirect "$HTTP_REFERER" + ;; *) redirect "?p=view&${watch_link}" ;; esac