]> git.plutz.net Git - serve0/blobdiff - actions/watch.sh
fix: accept one digit page size
[serve0] / actions / watch.sh
index c0cdb377c8904d5849335fbdf4b4c834f34f8054..39ca7e0cecd7833e28ec69c1937b7b54cd281aac 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/zsh
 
 cgi_refdata
-cgi_cookie
 info="${_GET[i]}"
 order="${_REF[o]}"
 search="${_REF[s]}"
@@ -48,7 +47,7 @@ case "${_COOKIE[watch]}" in
     redirect "$videourl"
   ;;
   server)
-    DISPLAY=:0 nohup /usr/bin/mplayer -ao pulse:jupiter --quiet "${_DATA}/videos/$info" >&- 2>&- &
+    DISPLAY=:0 XDG_RUNTIME_DIR=/run/user/1006 nohup /usr/bin/mplayer -ao pulse --quiet "${_DATA}/videos/$info" >/dev/null 2>/dev/null &
     redirect "$HTTP_REFERER"
   ;;
   *) redirect "?p=view&${watch_link}"