]> git.plutz.net Git - serve0/commitdiff
fix pulseaudio env variable, provide additional watch link
authorpaul <paul@plutz.net>
Wed, 25 May 2016 13:06:19 +0000 (13:06 +0000)
committerpaul <paul@plutz.net>
Wed, 25 May 2016 13:06:19 +0000 (13:06 +0000)
svn path=/trunk/; revision=134

actions/watch.sh
pages/list.sh

index 60d29db336b26b9649b5078bf7a0a3aa81474ada..48f465f84e3d0494799f279c6cc3d412526183e8 100755 (executable)
@@ -72,7 +72,7 @@ case "${_COOKIE[watch]}" in
     fi
 
     export DISPLAY=":0"
-    uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;1;p')"
+    uid="$(id |sed -rn '1s;.*uid=([0-9]+)[^0-9].*;\1;p')"
     export XDG_RUNTIME_DIR="/run/user/$uid"  # required for Pulseaudio
 
     nohup /usr/bin/mplayer -ao pulse \
index 7b68f29098e9463ca90edc50875a4d589e2a0724..337676e7c1d56b531ee9045876562818fc623388 100755 (executable)
@@ -81,7 +81,7 @@ _printVideo(){
         <button class="watchlink" name="${linkinfo}" formaction="?action=watch&i=${linkinfo}">
           <img src="$thumb" alt="Preview not yet available">
         </button>
-        <h2>${htmlinfo}</h2>
+        <h2><a href="?action=watch&i=${linkinfo}">${htmlinfo}</a></h2>
         
         <input type="checkbox" name="tagsel" value="${htmlinfo}">
         <span class="info property">${minutes}min</span>